Definitely. Foods high in sugar and acids can increase your risk, while those rich in calcium and phosphates, like dairy products, can help protect your teeth by remineralizing enamel.