No, actually if you just don't explicitly engage in hiring practices on the basis of ideology.
https://unherd.com/thepost/political-discrimination-is-fuell...
>Several studies find that between 18 and 55% of academics would discriminate against a Right-wing applicant for a job or grant. I found that 40-45% of North American academics would not hire a Trump supporter and 1 in 3 in Britain would not hire a Leave supporter.
I of course don't expect the fact to lead to any form of reflection. After all, it's obvious you can't even grasp the fact that ideological diversity is beneficial and matters while ethnic diversity doesn't matter and is often harmful.