It depends, there's a lot of gender nonconforming people who take hormones to change their looks without explicitly changing their gender