Insemination after an HSG

Is it safe to have an insemination a few days after an HSG?