Yeah, unless the one saying it isn’t white.
Doesn’t matter what race the person saying it is. IMO even a black person making those comments is a racist. A racist comment is a racist comment.