Hsg done can i have sex?

Had a hsg done today, doctor didn’t say anything and before I could any questions she rushed out. Can I have sex tonight?