Prevent kidney stones through better hydration

Can you prevent kidney stones simply by drinking more water? Possibly so, as water is great for eliminating wastes from your body.