Does Plan B work if I have unprotected sex after I take the pill?

I had unprotected sex and took plan B and had sex again between 24 hours of taking it. Does it still work or should I take another one?