The church recognizes and officially welcomes gays and lesbians as members under condition that they attempt to live the church's moral code. The church teaches that homosexual feelings, as distinct from behavior, may sometimes seem to be inborn, and that although these feelings are sometimes unwanted, they can and should be controlled. The church's law of chastity forbids homosexual sex in all contexts. Consistently breaking the law of chastity may result in excommunication. Nevertheless, Latter-day Saints who identify themselves as gay or lesbian may remain in good standing in the church, without ramification, if they abstain from homosexual relations.