late pill, am i still protected?

so i was very tired yesterday and forgot to take my pill around 9:45pm. i woke up around 5:40am to get water and then i remembered i didn’t take my pill so i quickly got up and took it. am i still protected over how many hours i was late?