Low Sperm Count taking Clomid

Patient: Hi doctor, my name is Mark and im 26 yrs old. i already consult my doctor and i have a low sperm count. he asked mo to take clomid for 3months. i take clomid for 3months and the result was very good my sperm count now is normal. so me and my partner try to make love she got pregnant but its ectopic pregnancy. ­čÖü is it ok if i continue taking clomid? to avoid dropping my sperm count?. thank you for your response doctor. godbless!