Yes, but how any individual responds to a treatment like that is not obvious. Some people respond with understanding and compassion, actively avoiding similar behavior. Others learn marginalization as the standard forms of group interaction and propagate the same behavior towards other groups - see the way women are treated in the video-gaming community as a good example, or as a less direct parallel how violence in a home usually leads to children either desperately avoiding or repeating the same mistakes in adulthood.