Looking for answers

China
My doctor give me these pill to use because my period don't come every month like it should me and my husband been trying to have a baby for five years now and nothing he did a sprem test and it comes out that he is good, I did a tube test and I'm good. So she give me medroxyproesteron and Metformin to take for three months. Can you still get pregnant while taking these pills? Cause I didn't see my period yet for this month but saw it last month when I started to take the pills. I took a test and it was negative.