Pills to regulate period ?

I have a question lady's my name is Sheila I am 24 and I am married for about 3 years now I am currently having problems with my period well I have always been iregular so it's about a year that me and my husband have been trying to get pregnant but obviously I hadnt had a period so I don't  if I could of gotten pregnant with out my period , but any ways my questions is now I have gone further to see my doctor and he had recommended me this pill called MEDROXYPROGESTERONE 10mg I take 1 pill a day for ten days and than my period should come now has any one know if I could still get pregnant or has any one had any experience with this pill help please !!!!!!!!