Birth control and ready to start trying again

I got my first depo shot in April, they told me between June 18th and July first it should be out of my system so I have a fee questions one how long after your first depo shot can you get pregnant?? How long did it take to get out of your system?? Did it ruin your ovulation(I already have a problem with ovulating one time or at all)?? With our first baby they told me for two years I couldn't get pregnant so we changed our diet I stopped smoking Marijuana(which i used because I had a hard time eating and had stomach pains) and I got off of the birth control because I didn't want to believe I couldn't get pregnant and sure enough I did. I just want to know if the depo is going to mess up my chance.