Should I be alright?

If I had sex at 4 am and took a Plan B later that day around 7:30/8 pm, should I be fine? Would it be effective??