Answer:
Yes, it depends on what kind of surgery you have done. Thus, if it is surgery of pancreas, thyroid, or adrenocortical gland, or liver or stomach, these kinds of surgery can cause diabetes as side effects (better check with your doctor before running the surgery and how to take proper care).