Not exactly but certainly sugar plays a primary role in tooth decay although not directly. Tooth decay happens when bacteria in the mouth feeds on sugars an individual consumes to produce acids which combine with saliva resulting into plaque buildup on the teeth. It is the acids in the plaque plus the length of time on the tooth surface which result into the resorption of the tooth walls leading into cavities called caries.