Ive slept in the same bed as a gay man.
He was one of my good friends, and knows good and well that im not gay, so, wouldnt dare make a move, but, im not one to leave a good friend without a place to stay, so, it just worked out that way. So, yes, i would hug a gay guy without hesitation. I think its weird to be afraid of someone for liking guys.