Yes, but I hardly think that it's OK to ask people to undergo a sex-change operation to get a job (I do think it's perfectly OK to ask people to become good in a specific field to get a job in that field)
And the general point stands, because many other things you can't change about yourself (like your race) shouldn't be the basis of discriminating for job positions.