Birth control

So I changed the time I take my pill from the morning to the night. I’ve been taking it a 9 pm for a week now. I had unprotected sex yesterday and began to worry after. Should I be okay?