C-Section at38wks?

Is it safe and normal to have a c-section at 38wks? I’m already nervous about and someone just told me it’s not safe to have at 38wks. I have a septic uterus and my doctor is concerned that she won’t be able to turn around (she’s breeched and my cervix is thinning). I’m scheduled for a c-section at 38wks, But is that normal?!