Lockheed test pilot Tom Morganfeld didn't. After crashing a YF-22 prototype, he was selected for the first X-35 test flight.
Another Lockheed test pilot wrecked a F-16E at an airshow practice and ejected with injuries now flies F-35s.
As punishment?
If they pilot recklessly (reckless java code?), then yes they would either not make it out of flight simulator or barely make any flights until they grounded for a long time.