Yeah, sorta. It depends on who was writing that, but they sort glossed over it.

Either way, I'm not saying that the Federation would have eliminated gays, but that its possbile the "gay gene" was eliminated BEFORE the utopia was realized, for example, during the time of Kahn.