No. If you're an illegal immigrant you go to immigration court which is adjudicated on the spot. If it's a clear cut case of breaking the law/arrested you can be deported on the spot.
If you have a green card it can be revoked at any point for any reason.
This is how it goes. Load up the planes. Move that bus.