Will it still work?

If I took plan B just an hour or so after having unprotected sex, will it work? I've never taken it before until the other day