If I haven't been ovulating and my periods have been funky can my doctor give me meds to help conceive?

Anyone know?