If a woman has an active vaginal infection, she should wait until the infection has cleared before having an HSG.