Don’t judge someone for being new to this but..

I am on my period and want to masturbate. Should I take my tampon out?