It can be alright if you think your nation's value are worth preserving.
E.g. it is Patriotic to defend your country against a fascit invader that wants to remove your nation's self-determination.
You can welcome an invasion as a liberation force if no patriotism is involved.
Like the eastern front did in WW2 until they realized Nazis were more about creating Lebensraum.