Clomid after miscarriage

Tara
I just got the go ahead to ttc after first AF. I was on Clomid before and it worked really well for me. I got pregnant on our second month. I asked my obgyn if he thought the clomid caused my miscarriage. He told me clomid is more likely to prevent a miscarriage. Anyone else heard this. I am hopeful we'll have a new baby soon.