Police officers

Should police officers who are doing their best to enforce the law ever be punished in any way if they are acting in "good faith"?