It wasn't socially acceptable for 99.9% of people to say, but Rock was a very good black comedian, he was able to get away with it because he was making people think about it - like Richard Pryor, George Carlin, Lenny Bruce, etc, etc, etc.
If I recall, this was the bit that Michael Scott did...