Always has been the case. IIRC, back in the 40’s during an early ‘Red Scare’ in the US, a massive union purged a lot of members that it suspected of being communists/communist sympathizers to try and appear as though they were not too leftist.
The union was accused of being communists anyway.