Turns out if it's more economically efficient to simply import skilled workers, or outsource, then that's what will happen. Breeding and educating your own citizens in a first world country is very expensive. So you don't do it.
The only reason not to do this is national preference. Economically it makes sense, on a national level it makes sense, individually it's genocide.
It's petty and anti-nationalist to demand that your nation destroy it's own economy to fit your arbitrary political mold.
No, you don't need to accept migrants. You need money. You can get money in many many ways.
The best way for this to happen for the general prosperity of citizens is for the state to enrich themselves from the work of others, non citizens, and give that money to citizens. This is what Norway has done through its sovereign wealth fund.
If you do not want to defend Europe's front lines with teenage conscripts and geriatric riflemen, you need a way to bring warm bodies into the fold. Refusing lawful immigration will undermine domestic security, doom the elderly and ruin pension funds for future retirees. No sovereign wealth fund is worth losing your sovereignty over.
No, you don't have to.
Are you enlisted? Do you want to be? Europe needed to figure out it's defense plan yesterday, not in 20 years. If Europe won't ally with migrants, then maintaining European sovereignty is nearly impossible.