Hsg question

Can you request an hsg test from your doctor? Or do you have to be trying for a year?