Pill question?

I normally take my pill at 9AM. I've always been good at it except yesterday because I was more focused about my driving test... Remembered it at 12NN and took it immediately. Was I right for doing so or should I have waited to take 2 today? I took today's at the usual time as well, did i do it right? 
Just wanted to know for future reference.. Thanks!