pill effective

What if you don't take the pill at the same time everyday? Is it still as effective? Sometimes I have to take it earlier for work should this matter?