Absolutely. Which is why I don't understand why everyone is discussing this. Erica Joy apparently doesn't consider it illegal retaliation (and what we know is definitely not enough to warrant such a cunclusion), otherwise she would file a suit. Are we totally sure we didn't just misunderstand her?
Politics might appear less evident in smaller companies, because you're more likely intimately familiar with the people at the top. In a larger corporate environment where you really don't know everyone intimately, your perspective of the politics are compounded because you're not necessarily part of the inner circle. The road to the top is all politics though. If you want to get there, you have to know how to play your hand and visibly provide what those at the top need to further their own political agenda.
You can ignore politics but politics will not ignore you; politics is why tech worker salaries were kept artificially lowered and why Google and others had an anti-poaching arrangement.
She should have prepared a bit better but this was the safe move for her; it's out of her hands and the salary information has appeared on sites like GlassDoor. If she's fired everyone will know it's because of this ugly politics and people will want to avoid working for Google since it's no longer a tech company but a company dominated by managerial power players and sharks. Who wants to work at a place where you have ugly politics like this after all?
I don't like politics, and stories like this are exactly why - things that may be legal and should not be harmful end up turning into something ugly. You have to worry more about who you are pissing off that what you are doing, whether or not their anger is justified or reasonable.
Sadly, for all but very small companies, politics is the reality in the corporate world.