Pcos and miscarriage

I have had 3 miscarriages so my dr decided to run tests to see if she could find a reason why I was having them. While doing an ultrasound and blood work she discovered I had pcos. She said there is a possibility that the pcos caused the miscarriages due to not having the best follicles. Has anyone had numerous miscarriages and was told it could be pcos and if so has anyone been able to have a baby after the miscarriages? I am really scared about all this new info we received.