Yes, but in the case of prosecutors it can be very messed up. When someone is wrongfully convicted and there is very unambiguous exonerating evidence, prosecutors will fight overturning convictions.
It's bad enough to wrongfully send someone to prison, but to keep fighting for wrongful imprisonment when it's shown they made a mistake is downright evil.