Can you get pregnant from taking provera???

Ok SO, I’ve always been VERY confused about this. I was diagnosed with lean PCOS. When my doctor checked, I had a few cyst and he said it looked like I hadn’t ovulated in a very long time. I initially went in because I hadn’t had a period in like 3-4 months. I have had unprotected sex with my partner for about 6 years, NEVER got pregnant. My Doctor prescribed me 10 day provera to start my period. I stated about three days after. Then like two weeks later had another period. And by the next month, no period again. Come to find out I was pregnant!!!! So I’m just curious, is the only reason I got pregnant from the provera??? Does provera make you ovulate?? Has anyone gotten pregnant after taking provera?