It depends on the circumstances. In this case she was fired, and I don't think there was any question that was going to happen, I'd venture to say it was probably the right thing because by her protest she compromised herself. How could she go back to being a dispassionate part of the system?
Although on the news last night they mentioned that her job was up in three weeks anyway.
But the question of one's actions being "right" is not an absolute question, therefore I don't think it is right for someone to expect to act with impunity in all cases.
Should the members of the Squamish Five have expected to not go to jail for their bombings?
Should Robert Latimer have expected amnesty?
Should James Kopp?
Or how about David Chen?
THey are all people who felt what they did was the right thing, despite the law.