Yes but, as I understand it, when the 14th amendment was passed it turned the Constitution on its head. Prohibitions against the federal government became prohibitions against the states, and even the people.
Reading the 14th amendment, I don't understand the logic. I think you have to be a lawyer.