Question about Abortion

Salam everyone. I have some concerns about abortion. Today while in sister circle at our mousqe the topic of abortion came up and i have to admit i didn’t much about the islamic teaching and when asked if i ever would get one i said yes depending on the circumstance. Now i don’t think i said something crazy but everyone looked at me as if i was. I then said if i was forcefully impregnated i would or if it will kill me. I felt like a bit of an idiot because everyone said they would never. I want to be child free. I’m really scared because if i get married and accidentally get pregnant, would i have to carry the baby? I’ve looked online and asked people at the mosque and i’m getting conflicted answers. Jazakallah for hearing me out