Did I do anything wrong?

So this morning when I went to take my pill I lost it. So I just immediately took the next pill in the pill pack. Did I do the right thing? I still took a pill at the same time but am now one day ahead