Theoretically if true but likely not all of this is just show.
They can detain people in this aspect. It is a different term is all. However yes they can if authorized… It deals with national security issues is the thing.
Regardless of your perspective this remains true.