Is it safe to use an electric razor on my vagina

I got an electric razor, is it safe to use it on my pubic hair