SCARED

I slept with this guy last night, ( I wasn't completely off my period I was at the point where it's spotty)and he used a condom but afterward I have no clue what he did with it and so I'm going to take plan b but can I still get pregnant or will plan b work????