Help???

Well I guess kinda tmi but when I'm on my period I get kinda horny and I was just wondering if you could mastrubates in your period? And is it safe to????