Sure, but it also may be that it's easier to play straight than to play gay. Maybe. Sometimes not very skilled straight actors might push the role into stereotypical camp which
some people might find offensive, like with James Corden in
The prom.
I certainly wouldn't make a big deal out of those kinds of things, it's just a preference.
I thought it was fantastic they cast an all gay cast in the recent film version of
Boys in the band. I don't think it would have been the same experience had it been a straight cast.