There can be a lot wrong with nationalism, depending on the definition. I love "us" can also be I hate "the others". And quickly become "the others must not exist". For some arbitrary distinction of what is "us" and what is "others".
Sure, I grew up with a moral system which teaches, all world is your family. Of course, you will feel closer to the ones you live with, just like any big family.