is it ok to poop while you are pregnant?

so i haven’t pooped since 5 days ago... The reason why i’m afraid of pooping is because i’m afraid ill bleed or the baby will fall or soemthing (i freak out for everything.) Im only 5 months pregnant. will i be okay to poop? Im not bleeding or no pain but just scared i’ll have a miscarriage or the baby will fall