The pill...

I was going to start the pill but don't want to gain weight. My main concern though is the importance of taking it at the same time everyday...I have an erratic job schedule and my hours fluctuate so my question is if the pill is still efficient if it's taken every day but not at the exact same time? Like if I take it at 8am one day and noon the next day will it still work?