I'm perfectly fine with that following due process for the specific matter pertinent to the firing, or as part of an issued sentence or punishment for an original crime.
E.g., sexual predators (and no, not someone urinating in public) not working in seclusion with children, or those convicted of business fraud and related crimes not being officers of a company, losing accounting, actuary or similar licenses, etc.
But "thou shalt not work" doesn't cut it.