Irregular Period

Hiii I like to ask you guys what can I take to regulate my period? I've missed my period for almost 2 months now. I have read that you can take pills is that olay even if I don't visit a doctor?