If I start the pill today, day 1 of my period ....

If I start today day 1 of my cycle, when will I be protected to have sex, when will my next period be ? Will it randomly come & what else should I expect... thanks ‘