Only if such a law ia authorized by the Constitution.
Is an unconstitutional law any law at all?
And, for extra credit, do you think federal LEOs are constitutionally authorized to roam wherever they please?
And this one is, so say the federal courts in which it was challenged.
"Is an unconstitutional law any law at all?
Nope
" And, for extra credit, do you think federal LEOs are constitutionally authorized to roam wherever they please?"
Yep. But in some cases they need a warrant.