Yes. Shunning is a social rejection of someone generally because the person in question has made some terrible mistake in judgment or behaves in a way that is not acceptable to the group. If someone were to continue making negative comments to another because of his or her race or religion, for example, the larger group would not want to associate with that person anymore.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.