The answer seems to be yes for at least some number of travelers. I have traveled the Muslim world and sub-Saharan Africa extensively and I have met plenty of fellow travelers who are gay, whether individuals or even gay couples. The couples simply don’t show affection in public, but heterosexual couples shouldn’t either. Even sharing a room as two men or two women is no issue, because the locals will assume you are friends unless you explicitly, deliberately, tell them otherwise.
And twice when I got the contact info of local Europeans living in the region who were known for extending hospitality to any travelers coming through, I arrived to find that it was a gay couple who had been there for decades. I must say, this whole thread is full of uninformed stereotypes, and posters would benefit from firsthand experience of the world.