Polycystic ovary is a hormonal
condition.It wont have any effect once you are already pregnant. You can take these medicines your doctor has prescribed. Since you have a bad history you need to be very alert in this pregnancy
.Further evaluation is needed as to the cause of your previous miscarriages and rectified.