Yes. One would think that by saving millions of lives with his brilliant code breaking, Turing would have earned a punishment for his homosexuality far less barbaric than chemical castration. His country stabbed him in the back, and he killed himself two years later.
Maybe he killed himself because he was a homosexual. They kill themselves at higher rates than normal people no matter how “affirming” the society they live in is.