Homersexuality is a behavior. Behaviors can be modified. One cause of homoersexuality is imprinting.
https://en.wikipedia.org/wiki/Imprinting_(psychology)
Link says Wikipedia doesn’t have that page.