Pregnancy

Can you have your period and still be pregnant me and my boyfriend had sex about 2 weeks ago and I'm on my period but he's confined there might be a chance I could be pregnant and it's scary I need help what do I do