Oral Contraceptives

Can you start taking the pill at any time in your cycle or does it have to be while on your period ?