Yes, and in fact its irrelevant as far as the law goes, since whether it's learned or genetic, society only experiences a person's homosexuality through their behavior. This is different than a person's race which is a property of their body. What's so galling is that laws are being written as though this distinction doesn't exist.