Yes, because illegal immigrants are exactly the same thing as an invading foreign army.
I'm just impressed that someone in America actually knows this bit of history.
Most Americans at least know some of the conflict's highlights. We may not use it as a point of national pride like you Canucks do, but we remember it.
The British, on the other hand, see it as sideshow of the Napoleonic Wars.