I think things are more nuanced (and interesting) than that: https://en.wikipedia.org/wiki/Communism_and_LGBT_rights
For example:
> In 1962, the Czechoslovak Socialist Republic decriminalized same-sex sexual intercourse after scientific research from Kurt Freund led to the conclusion that homosexual orientation cannot be changed.
Meanwhile, in USA:
> In 1962 Illinois adopted the recommendations of the Model Penal Code and thus became the first state to remove criminal penalties for consensual sodomy from its criminal code,[7] almost a decade before any other state.
There is an abysmal record of gay rights across all parts of the political spectrum, including using sexual orientation as a political tool of oppression. There's nothing special about communism.