As long as they provide context, I don't see why it would be bad. It's still far better to substitute the word just to be safe though, as in 'The n word with an A' 'The N word with a hard R' 'An italian slur' 'a white/caucasian clur,' etc. Better not to run that risk.