It is unlikely that you'd get pregnant having sex just before your period. You are at your lowest fertility and the egg is not viable.
Did you have sex earlier in the month? Have you been ill or stressed?
Sometimes you can just be late too.
Take a home test if you want. Just be sure to use ONLY your very first morning - wakeup - urine for the best results.