Throwing up on the pill

I have taken my pill at exactly the same time for multiple weeks. I take it at 5:30 but yesterday I got food poisoning and started throwing up at 10:30. Since it was 5 hours does that mean I’m ok and it doesn’t affect my birth control?