Maybe this is true in a minority of workplaces, but almost every person reading this can think of a coworker who cracked a sexist or rascist joke.
That doesn't count the plurality is people smart enough to keep it to themselves and just let it influence your ability advance.