It's been demonstrated in many studies. One of my favorites had subjects fill out a big questionnaire to determine the overall level of hostility toward homosexuals (there were dozens of questions, so it was not obvious what they were trying to measure). Then they showed these subjects all sorts of porn and measured their arousal.
There was a direct correlation between homophobia and getting aroused by hot man-on-man action.