Does the pill instantly stop your period

If I take the pill on the first day of my period, I know I will be protected from then on, but will that period then stop, or get lighter or will it just continue? and if I take the pill a few days before my period, will it delay it? Thank you xxx