Pregnancy after emergency c section

Hello all,

I need some advice. So I had an emergency c section 8 months ago and I currently think I am pregnant again. I wasn’t trying to get pregnant and thought I took enough precautions. But anyways I am wondering if anyone had gotten pregnant shortly after having a c section and if it took a toll on your body. I know they say wait 18 months before having another one. I am a little worried about if I am pregnant and if the baby would be ok and if my body would be ok going through another pregnancy so soon after.