If you aren’t active you put yourself at risk of developing type 2 diabetes. Exercise is also key to treating the disease. It’s not the same for type 1 diabetes, although there is evidence to show that regular exercise improves the way your body responds to insulin which is helpful in managing the disease.
There is lots of advice about diabetes on the Diabetes UK website, including a section on how being active and staying active can help.