Sure, but without due process what forbids a government to call anyone, including US born citizens, an illegal immigrant and deport everybody without any recourse? There is no legal recourse. They just need to lie and label you an immigrant.
Discussion
How can US born citizens be considered illegal immigrants?
The due process is to use existing legal pathways to enter the country.