Well if you got your period after some hours your defiantly not pregnant but take a pregnancy test tho
The egg only survives for up to 24 hours (according to all these medical websites/sources) once it has been released. This means you ovulated about 10-14 days ago, and by now you would no longer be fertile. If the egg has not been fertilized within that 24 hour timeframe, then that egg moves on, and can no longer be fertilized. Having a period means that because the egg has not been fertilized, the uterine lining that built up previously during ovulation in order to prepare for a potential pregnancy is being shed. There's all this other information which I will not write because in this case it would be unnecessary. Bottom line, you are not pregnant.
ONE MORE THING!!
I'm only saying this because I was once young and here and there I still make dumb decisions. I say 'dumb' because if you're not willing to put up with the risks of pregnancy, you should not be having sex. You might think, "why is this guy telling me this stuff??" but trust me when I say it, if you're not willing to deal with the risks of pregnancy but still have sex, that is just not smart. Birth Control is never 100% effective, and there is ALWAYS a chance of becoming pregnant. Just thought I'd get that out there.