Anything can go both ways.
In the past you can go to jail for being gay (and still in some parts of the world).