pregnancy test question!

i had unprotected sex on friday, and I am expecting my period this thursday. i am on birth control but was not good about taking this month. if i bought a test that can detect before missed period would it work right now?