Is ovarian cyst surgery dangerous

Hi I'm 21 and Friday I found out I have ovarian cysts and I'm nervous and scared because this is my first time having anything like this.. So my family suggest I should have the surgery but I am more concerned about my diabetes and if it will harm me.