Plan B

Hello me & my bf had unprotected sex today no withdrawal. And also I have a ear infection. I been taking antibiotics for. I wanted to know if I take a Plan B will it work?