Can you take Clomid if you just started having regular periods?

I used to have a very irregular cycle but I started metformin about 6 months ago and have been regular ever since but still no baby. My ob started me on 50mg cd 5-9. I really hope this works🤞🏼.