Yes, but on the other hand, places "where people have to walk barefoot" often have high rates of hookworm infection - they typically enter the body through the soles of the feet - causing anemia, stunted physical and mental growth, child morbidity, etc.
As my medical history professor put it: "Have you ever noticed how in [American civil war] pictures, Confederate soldiers looked smaller than the Northern soldiers, like some of them were still kids? A lot of them had their growth stunted because of hookworm, due to walking barefoot." This was a major public health issue in the Southern US in the 30s. It still is in much of the world. Suggesting people run barefoot is pretty irresponsible, and shows how many things they take for granted - like people crusading against vaccination .
Also, a lot of peasants centuries ago ate poorly, too. Want an example? Read about pellegra in Italy, beri-beri, or how much alcohol was commonly consumed in colonial America on a daily basis. As counter-intuitive as it must sound, many peasants were poor, and weren't always able to eat well.