I personally believe it is. Immigration is a privilege not a right.
Of course it's perfectly moral, one of the main purposes of a good governance is protection and safety of the populous.
When there's a group of people who are unabashedly racist in the main, who's own history and holy books call for and enact genocidal tendencies, who believes it's their job to rule every single inch of this earth and to subjugate all the people's of the world under the banner of their faith - then it's not only moral and just to deny them entry into your country, it's actually the God given responsibility of government to deny entry for the protection and safety of the citizens.
We often talk in America, any country really, about the responsibility of the citizens but we never talk about government fulfilling their moral obligations to the citizens they gave an oath to before God.
This current administration in America has violated their sworn oath by not securing the border, and not caring for the citizens of the land, for their well-being. I think we can look at practically every European country and even the UK and say the exact same thing, before God rulers have a responsibility to their people and they have sinned against their own people in the sight of God.
I hope this helps. There was a letter written when the US split off from the British that described the moral justification for doing so, and it was far more than a few taxes, but the main thrust was that government has a responsibility to the people and at one point when governments completely shirk their responsibility the people are under no moral obligation to be their subjects any longer.
The reason I added that was to show that yes, as a moral issue I believe that we need to talk more about the governments responsibility to us, because I think they've (governments the world over) already sold us (the citizens) down the river, and a great many will not survive what they've already done, even if they repented today.