Yes. Lots of studies support that keto diet helps to improve insulin sensitivity. So, it is safe to do keto for a diabetic person. Keto diet is a low carb diet so it will always be beneficial to diabetic people, but you will need to get proper medication management by the doctor or dietitian.