CAN I DO HSG ON A CYCLE THAT I AM STILL TAKING FEMARA?

Is it okay if I take femara cd 3-7 and do an HSG procedure a fee days later?