OrnotBitwise
Watermelon
Indeed so. And, as WM has pointed out, when law goes too far astray from what custom and consensus prescribe, you end up with dramatically increased social stress.Law has a bearing on customs as well as on conscience. Usually the one is made or changed because of the customs and conscience.
Many people scoff at the idea but it's really true: the overwhelming number of people in any society obey social norms not from fear of formal retribution but because they know internally that these norms are "right" in some absolute sense. We're programmed that way by evolution . . . and it's not difficult to see the selective pressures that ensured we would be.
Law is necessary, certainly, and the larger and more dense the society, the more law becomes necessary. Human beings also require room for divergent behavior and counter-cultural groups. The two forces have to be allowed to balance themselves.
The upshot of this is somewhat counter-intuitive for many. Increasing the penalties for breaking social norms does not generally increase the deterrence value of law. It can to a very limited extent but you end up reaching a point of diminishing returns very quickly.
This isn't just theoretical speculation. It's been demonstrated many times.