Hsg test

Is a hsg procedure sort of a first option or will drs put u on fertility meds first to help u conceive & then if those dont work they do a hsg to look deeper into the problem ? (Back story ive been ttc for 7 mnths with irregular periods and no luck so far)