Weston Price would argue otherwise, I think - https://www.amazon.com/Nutrition-Physical-Degeneration-Weston-Price/dp/0916764206 An interesting book.
I’ve known people with execellent teeth, no cavities, etc, and didn’t floss and lived on junk food and sugar.
Me? fanatic tooth care for decades, fanatically clean healthy diet. Teeth suck but really healthy gums and low bacteria count according to dds.
Diet and health of mother is key as well.