Does changing your diet and exercising regularly help prevent diabetes?

Does changing your diet and exercising regularly help prevent diabetes?