Is it true being overweight makes getting pregnant difficult?

I'm overweight and my first pregnancy was a miscarriage. If I reach a healthier weight will it not happen any more? And why

Updates
+1 y
I've also seen real life examples where skinny girls get pregnant the first time. Makes me think weight really has something to do with it
Is it true being overweight makes getting pregnant difficult?
Post Opinion