All who are shunned know the adverse effects of such. We feel it. We know how it has changed us. But does it the experience change our brain? I believe it does. I base this on my own talks with pschyologists, therapists, research and my own experience. I don't know how in depth this has been studied though by actual researchers. I would like to see it done. If you know of such research ease post it. I have linked below research done as to trauma and the brain changing. I believe shunning is trauma and in most cases what led up to shunning is someone who has been through trauma.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3181836/
https://www.psychologytoday.com/blog/workings-well-being/201703/how-heal-the-traumatized-brain
http://bigthink.com/philip-perry/been-traumatized-here-is-how-ptsd-rewires-the-brain.amp