Help please!!

I was on depo for like two years. I was not getting the shots the way I was supposed to. Would this still make it harder for me to get pregnant?? I've been trying and nothing.