Start pill

My period is super irregular. Can I start taking it before my period starts? Like suggested by my doctor