No. Comedians do not "get away" with racism. They face severe criticism, boycotts, and backlash. While comedy uses satire and exaggeration to challenge norms, this does not endorse harmful views. Discrimination, including racism, is not excused as comedy.
The "just a joke" defense fails when the joke reinforces oppression. Accountability exists—and audiences enforce it.