Our constitutional protections aren’t limited to citizens.
It is BEFORE you are accepted in the US. Unless you’re one of those open borders people ;-)