confused

i accidentally missed my pill yesterday and this morning i woke up with horrible cramps. i went to the bathroom and i got my period when i’m not supposed to get it for another 10 days. do i keep taking the pill?