Surely, being social promotes cooperation, which in turn can promote favourable outcomes for both individual and society.
But being social in restrictive sense, where you identify with one group and another, may bring more harm than good.
Sociability is an asset when everyone is your friend, but it’s a futile if you just create enemies.
To get the best outcome in social life, you need to accept everyone as your friend, and hope that everyone accepts you too.