Metformin and pregnancy

Laura
Wondering if anyone has gotten pregnant on metformin and still miscarried? I was put on it a month ago and prior to that I had 2 mc. Is there still a good chance of mc or will the metformin help me keep a baby this time?! Trying to remain hopeful but realistic ..