Taking pill while still on period

I started the pill yesterday as I thought my period was finished there was no blood and it was due to end yesterday so I took the pill but I woke up this morning with small amount of blood so my period isn’t actually done did I ruin eveything with the pill or is it okay to keep taking the pill daily.