Legally, no. From a practical standpoint, people do whatever they think they can get away with.
I mean, there are enough people on this very board whose response to Black diversity initiatives in particular, is that they're too low IQ on average and therefore will be disruptive to team productivity and cohesion, despite people like Naseem Taleb going after IQ measurements.