Can I work out while on my period

I have really bad cramps but I want to try to do a workout video is it okay to work out on your period?