Surely. I suspect about my homosexuality since 14 years old, but I'm from a very conservative family, so I didn't have the courage to discuss openly from a close relative. At college I accepted myself a little more, but I chicken out a couple of years and return to church to try to overcome. Now I accept my sexual desire for men (cis and trans, whatever).
Nevertheless, I didn't have a successful relationship. I never get a boyfriend more than one year. And sex seemed fine in theory, but in practice I felt ashamed in best situations, sad and regret in most intercourses.
Sure, feel ashamed about being gay triggered my suicidal ideations but it wasn't the main reason to want to die.
In recent months I decided to become trans / non binary woman in the future but that's another story.