Do you have to have hsg before IUI

Is it a must before the procedure?