In my 30 year career, seeing patients from 4 generations of families, and treating identical and fraternal twins, i believe there is a significant genetic element with respect to susceptibility.
In many cases people develop decay symmetrically . We have a set of twins in our practice that have developed identical cavities on opposite sides . Good hygiene and diet
are still important.