Especially when combined with really good acute medical care and reductions in infections. Of course, how much of the infection reduction is a result of washing with soap is an open question.
Ignaz Semmelweis came up with his germ theory after observing a strong correlation of infections with whether people performing certain tasks in hospitals washed their hands or not.