XLR is a balanced connection.
If your receiver had XLR outputs an XLR cable would give you a connection which has better noise rejection (a long run is less likely to hum or pick up stay signals) than a single ended connection like RCA. Unfortunately, most receivers only have RCA output which is unbalanced… it’s not really important to understand all of this.

In your case, you can use a RCA to XLR cable OR an adapter.
The RCA gender is different depending on what you pick (males plug into females)
Each has an advantage… I’d personally opt for the adapter (XLR male to RCA female) as RCA male to male cables are common and inexpensive (usually as a stereo pair … I.e. right and left … you can use either side and leave the other hanging or on most you can un-zip them and have two 1 channel cables)

The cable you picked would work if it’s long enough to reach (receiver to sub). Otherwise you’d need to have an RCA extension cable (male to female).