Density is an effect and not a cause of design. My dad grew up in Bend, Oregon during the Depression. People had cars but walked to work, typically at the sawmill. Bend was a small town and not the tourist destination it is today, but it was apparently designed to be walkable. Go to Bend today though, and it's been rebuilt for cars rather than humans.