This is true and it’s the same for adulterers, and those who turn away from God to follow their own lusts.Whether it's homosexuality or any other sin, God gave them up because they gave Him up first. They were so insistent that they go their own way that God basically said "Okay, have at it". God gave them what they wanted.
However, that doesn't mean that someone involved in such sins cannot repent and come back to God. (Ezekiel 18, Luke 15)