Is it okay if I seek comfort from gay men?
Why are you seeking comfort from men who are gay?
I'm a gay man myself and I need a group of men to feel safe
I can understand the need to feel safe, but it is wrong to lead someone on with false emotions. As long as you are doing it for the right reasons and not being false about it, I think it is fine to seek comfort where you can.
What if I was straight though? Would this still be okay?
Sort of, it would make a little bit less sense as to why you're looking for comfort from gay men. If you are pretending to be gay for their comfort, then it is wrong, because as I said before, you really should use false emotions to make someone care about you.