Although a well-balanced diet is important in preventing cavities and to ensure good general health, cavities are not only the result of what children eat but also the frequency of meals.