Yes, according to the clinical studies,people with diabetes are at an increased risk of cancer but only certain types of cancer like liver,pancreas,endometrium,colon and breast cancer. The prevalence of developing these cancers in diabetic patients is 8-18%.
The association may be due to shared risk factors like aging,obesity,diet and physical inactivity.
Females are at a higher risk than men.
Reference:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2890380/
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5657107/