Yes, that’s one of the hoops the folks from other countries have to jump through.
Allowing the lawbreakers to stay and work here puts them at the head of the line.