Put to sleep

My baby has been breech since about 18 weeks. If I end up having to have a c-section can I have the option to be put to sleep. I am really scared of having surgery. And I'm one of those people that have really bad anxiety where even tho it dont hurt my mind will make it think it hurts and it will hurt.