There are different types of pills, combination or mini pill. Combination pills have a 12 hour window in which you have to take them - you took them within 2 hours so you're okay. Mini pills typically only have three hours so are therefore more time sensitive, however there is a couple of types that also have the 12 hour window. You can find out which type you have by looking at your pamphlet or googling your brand. Your doctor should have told you, too.