Hum...It did. Being gay had and still has in some places a strong taboo surrounding it. Families where gutted when one child outed themselves as gay, and the family couldn't cope with that. Religious families still today resort to exiling family members for that very purpose. People pressured into fitting in the heterosexual mold that later reveal themselves can break appart families, exactly like cheating does.
From the point of view of religious parents, being gay was an offense as worst if not worse than cheating, which can be kept under wraps depending on the situation. It was, to them, a morally disgusting act.