I don't think a person could help it if he/she found homosexuality especially unnatural or wrong for whatever reason if that is how, at a young age, it was learned to be. However, I believe this to be due in large to social conditioning, so a person has the potential to change an aversion to the topic at hand. To answer the general question: no, homophobia is not genetic, it is learned.