Will the plan b work

Me and my bf had unprotected sex last Friday then again Sunday morning and I took a plan b that same morning Sunday can it still work since I had 16 hours left to Take the plan b from the incident Friday