Did anyone have HSG while pregnant?

Unknowingly of course. And what happened? I had one yesterday after a negative pregnancy test but still a bit concerned. I should have had the test earlier in my cycle but the doctor didn't tell me that.