help!!!!!

can you take a pregnancy test if you’re still ovulating? i have 4 days left but my boyfriend has been cumming in me since before i even started ovulating. there’s about 16 days til my next period should i just wait 14 more and test closer to my period date or could i get an early pregnancy test and test now?