After sex questions

Last night I had sex for the second time ever and it hurt really bad but I found out my hymen ripped.. Is that okay? Also my period is out of whack and I need to figure out how to get back on track!! Please help!!!!