birth control

ive been on the pill for 2 months now. yesterday my bf and i had unprotected sex. will the pill protect me or should i take a plan b?