They can, yes. But this is a legal loophole that the government abuses to circumvent a warrant required by the 4th amendment.

The 4th (and 5th) amendment requires warrants to compel folks to do things they aren’t voluntarily consenting to do….. Not really a loophole per-se.