No? At times, eu-internal borders were closed, for some time the fall of the european union was a serious concern. And that's within a political union.
It was each country on their own.
EU internal borders being closed was agreed between countries in the EU though. It wasn't every country for themselves.