Yes, diet can have an impact on vaginal pH. Foods rich in probiotics, such as yogurt and fermented foods, can help maintain a healthy balance of bacteria in the vagina. On the other hand, a diet high in sugar may promote the growth of yeast, leading to infections.