Sooo does Plan B actually work?

I took Plan B before 24 hours after unprotected sex...