Cavities when treated on time can further prevent teeth from going to root canal treatment

Cavities nothing but deminerlisation of teeth which can be prevented with 1) flouride treatment at early age 2) use of fibrous food which also provide roughages 3) avoiding sugary drinks and acidic food