trouble holding poo 😩

I'm 5 weeks post partum and I had a third degree tear she said almost 4th and I can't hold it when I have to go to the bathroom will this go away with time? I'm embarrassed but today I pooped my pants a little before I could make it to the bathroom