Plan B

Let's Say I Took A Plan B Pill Yesterday Night And I Had Sex At 12 or 1 am Does It Still Work After ??