pill taken late

I usually take my pill at 1pm and i woke up really late i woke up at 4:10pm am i still like ok am i protected? Despite taking it like 3 hours late?