What happened to Sodom and Gomorrrah (cf. Gen. 19:23-26) is a lesson for all of us. Even in the matter of sexuality God has asked us to follow definite rules of conduct as contained in the sixth and ninth commandments. In short, the sexual faculty may be used within legitimate marriage between one man and one woman for purposes of procreation and mutual support and satisfaction of concupiscence. Thus the Church made it clear that the sexual activity has to be ever open to the normal transmission of new life. You look at the meaning of Sodomy in the dictionary; it means an abnormal employment or use of the sexual faculty, contrary to the purpose God designed it for.
This means, if you read the first book of the Bible in Chapters 18, 19, and 38, there are sections talking about God’s decrees as regards the right use of sex. Let us just remember the happening in Sodom and Gomorrah that relates about God’s punishment for the abuse of sex and keep in mind that relevant quotation from St. Paul’s letter to the Hebrews: “It is a dreadful thing to fall into the hands of the living God” (Heb. 10:31).
Remember history so you may avoid repeating past sins and mistakes.