Yes. States (sovereign states) have borders they can enforce. The federal government can enforce the country’s borders. That didn’t mean the sovereign states can’t enforce their own borders. They didn’t give that power up.
I’m all for state’s rights and going back to the Constitution like the Founding Fathers wanted. But N0bama has other plans. Just wait until states lose their sovereignty forever and must fall under the red flag of socialism.