Pco and clomid

I sm 32 and have been ttc for over a year. I miscarried 2 years ago. I went for a fertility test today. My doctor did an ultrasound and said I have polycystic ovaries and should try clomid. Has anyone tried clomid? If so,did it work out for you?