No, banning immigrants based on their religion is unconstitutional
However, if said immigrants are somehow linked to potential threats, they should be reviewed much more carefully before being granted entry, or banned from entry entirely if the risk is too great.