Yes. A referendum on restoring the death penalty in the UK would likely get a strong yes vote. In that case the people's will would be wrong. The most important feature of democracy is that it gives enables people to remove governments without violence. The ability to choose or influence what govts do is secondary.