HSG question???

How soon after your HSG can you have sex? I am currently on my period and normally they do it 7-10 days after but unfortunately they scheduled me for the 20th which is near my typical ovulation time. I guess a person that does them will not be there during that time so that’s why it’s so far back. 😐