The pill

I’ve just started this pill and I’ve to start it the first day I get my period which is due next Monday than I stop until my period is gone , but I decide to have sex the day my period ends or the next day and I’ve taken that pill the day my period ends should I be okay to have unprotected sex?