Does Public Opinion Matter?

Public opinion does change some things. This is why Jewish wars include collective punishment. Here are two examples from the Life in Israel blog.

Yes, I can think of counter-examples too.