Can i take pain killers with alcohol in my system?

💍

I was just drinking about 2 hours ago and i started my period now i have really bad cramps but can i take pain killers even though I’ve been drinking?