The Cleveland Clinic says yes: “Taking some simple steps now can help you avoid type 2 diabetes. In fact, making healthy lifestyle changes now can head off nearly three-quarters of all cases.”
https://health.clevelandclinic.org/type-2-diabetes-5-simple-prevention-tips-for-families/