Yes, it's perfectly safe to use shaving cream with electric razors. Shaving cream provides lubrication that reduces friction, making the shaving process more comfortable and less likely to cause irritation.