So this is your first time on the pill?
If you started the pill within first 5 days of your period, you're protected immediately. If you start at any other time, you would need to wait until you take 7+ pills consecutively for the pill to suppress ovulation, protecting you against pregnancy.
I'm just not 100% sure if that spotting that you had the day before your period is considered as "first day of period". Is that normal for you and happens regularly?
Besides, even if it doesn't count, the second pill that you took while on your period should be enough to protect you from pregnancy if I'm not wrong.