Letrozole before fallopian tube test ?

Is it safe to take Letrozole capsules even before getting your fallopian tubes checked ?

I'm not ovulating so the doctor has advised to take Letrozole. Please advise .