Of course they can. But my brother's intrusive thoughts often were revenge based- at one point, he believed older men all thought they were better than him and he attempted to assault one (although, tbf, he did not at any point aim to seriously injure), certain experiences meant he made it about a group rather than individuals, but he doesn't hate older men, his thoughts did.
Of course, this man might just be a misogynistic dickhead. Those poor, poor people.