cisnowflake answered:

Hmm… I would say no, not necessarily. To me nationalism is just taking pride in and supporting your nation. Identity politics is about collectivising people based on really shallow characteristics.