Yes I have seen that definition, I agree with that one, but it has been used as a negative term as well.
Thomas Jefferson, in his revised criminal code for Virginia, classified sodomy with rape, as a felony to be punished by castration. In fact, Jefferson moderated the punishment for sodomy which, under the common law, had been capital. Sodomy had been condemned as a grave moral offense, both in the Old and New Testaments. It had been condemned by reason no less than by revelation, by the Laws of Plato no less than by the Laws of Moses.