It can be.
The trouble is with some things one person’s bash is another person humor. I remember seeing Brad Garrett live doing stand up and part of his act was making fun of Jewish people and a woman in the audience yelled out, “why are you so mean?” To me it wasn’t mean at all. It was in Tunica, MS, my best guess is she was a southern woman who didn’t get it. A Jewish person would more likely have screened out, “you’re and antisemitic Jew,” or, “you hate your own kind,” if he was offended.
Some people think its racist to bring up any stereotype, but that has made comedians rich. Most of the time I think it is ok, maybe even good, when done with care.
Really bashing your race or group you belong to is not good. Generalizations that imply all people from that group have bad traits or behaviors is never ok whether you belong to the group or not and bserving that that person avoid interaction with their own group is always strange to me.