Personal experience can definitively help to form identity, but it can also be completely abstract and arbitrary. In many situations there are just an abstract proxy of an implied shared experience that never happened.
Left and right-wing voters also divide the in-group and out-group categories differently, which adds an other dimension to studies looking at empathy towards in-group vs out-group based on political alignment, and they will definitively differ when looking across borders and culture. The in-group of a left voter in the US may be the in-group of a right voter in Germany.