In a way, yes. The specific meaning of words here is important. Sex likely refers to primary sex characteristics and gender may refer to secondary sex characteristics. For example, breast cancer is not a high risk for men, but it is for trans women.
Oh, my bad. Sorry. I meant to say sexes. For hormone therapy the gender matters! :D