Can plan b fail?

My boyfriend and I have been having unprotected sex using the pull out method. It wasn't until the 24 when he came in me. The next day I took plan b. Question is could I still end up pregnant even if I took plan b? This would be the first time I ever take the pill. I took the pill almost 17hrs after