TMI but I need help

So last Wednesday, I'm pretty sure I cut myself while shaving, it hurt on Thursday, and on Friday it wasn't bad, I went and stayed at a guys house and we had sex, my vaginal area hurt really bad after, and for 2 days after, today I started having a weird pus-like discharge. Do I have a bacterial infection from cutting myself shaving? Has anyone else had this type of discharge? It doesn't sting when I pee or anything