Skipping School for cramps????

I am in School. And when I get my period the first 2 days are the worst. I get really bad cramps, is it ok if I skip like one to two of school????