nn.MultiHeadAttention - SelfAttention - Query, Key, Value

If I am trying to use self attention using nn.MultiHeadAttention . Do I just use the same thing for query, key and value ?
As in do I just feed the output from my RNN ?