a little help please

so a few weeks ago, my bf and i did the deed during the first night of my period. we did use protection but im not sure why im still getting thoughts about pregnancy. yes it was also my first time. should i take a test just in case or is it just me overthinking?