Yes if the law you are breaking it directly related to the accomplishment of your job:
Cashier; steal cash, lose your job, and any chance of being a cashier ever again
Doctor; fraudulent prescriptions or insurance fraud, lose your job, and any chance of being a doctor again
CPA; embezzle, launder, etc, lose your job, and any chance of being a CPA ever again
Need I go on? This isn't a difficult concept.
As to the pension, there aren't many defined benefit plans left anymore, but for the ones that do still exist (mostly public employees) there is 100% a requirement that you depart the organization on good terms. For the military you don't even have to break a law to lose your chance at a pension, you just have to be separated before 20 years.
Of course anything like a 401k is different, that money is yours EXCEPT for matching contributions, those are up for grabs though I understand once they are vested that likely means it is legally yours without risk of forfeit. But that isn't the point. The idea of losing a pension after termination for cause is 100% valid and common.
The only question left: what crime / infraction justifies such a termination.