Im 20 yrs old I just miscarried my first baby

Patient: Im 20 yrs old I just miscarried my first baby and never got an exact reason why I miscarried I got on the depo shot and a week later I found out I was already a month pregnate and my dr said the baby would be fine so I was wondering was the depo the reason for my misscarage

Doctor: