postpartum period intercourse

i gave birth last december and weeks after giving birth i had an intercourse with my husband and now i'm worried that i might get pregnant. does postpartum period stops if i ever got pregnant weeks after i gave birth? thank you to those who will answer i really need someone who can help me with this