Yes, a diabetic can undergo hair transplant provided his blood sugar levels are under control. Just that the surgeon needs to be more careful during the surgery & you in the post operative period.
Even a healthy normal person can have complications. They are always possible in medicine. What you should do is talk about the amount of risk involved depending on your exact medical history and procedure size.