Yes. Calcium-rich foods such as milk, yogurt, and some cheese and oxalate-rich foods are beneficial for preventing kidney stones. This is because oxalate and calcium from the foods are more likely to bind to one another in the stomach and intestines before entering the kidneys, make it less likely that kidney stones will form.