That already happens. Witness all the random "bans" and "pauses" Trump has instituted against various nationalities and groups of people at the border.