It's not just immigration. It's tourists, business people, diplomats, etc. And, it's travel in both directions. It's impossible to stop diseases from coming in. Under certain circumstances, such as a world-wide pandemic, it can be advisable to impose travel restrictions to reduce spread, but stopping it is impossible. That's why protecting populations by an approved vaccine - when one exists - is a no-brainer.