Can a gay person be married to a heterosexual?
Of course. There are many closeted gay people in heterosexual relationships and there are heterosexual marriages where one partner is openly gay.
Yes, it happens all the time, particularly among closeted gay people who are trying to hide their true orientation. But with more tolerant societies, the incidences of a gay person hiding within a heterosexual marriage are becoming less and less common.