Yes, and the reality is also that, if you run a company, you sometimes have to do what you have to do. If popular opinion turns on some policy or employee, you may have to make a tough decision whether or not it's something that you would necessarily do in the absence of potential business consequences.
It's easy to second-guess or criticize such actions from the outside, but sometimes you just have to be pragmatic.