Has anyone gotten pregnant and then put on metformin?

I've conceived naturally twice now both neither one was considered a viable pregnancy. I'm wondering if maybe I was put on metformin right after I found out It would have helped the pregnancies? Does anyone have any stories they want to share? Were you put in metformin first and everything was ok?