Can you do an HSG while on clomid ?

Hi all. We have our first fertility apt coming up. I am going to push to start clomid this cycle as my period is due the day before our appointment. I know he’ll probably want to do an HSG this cycle too. My question, can you be ok clomid and do an HSG?