Yes, it is safe to use an electric blanket overnight. However, it is recommended to turn off the blanket before falling asleep. Most electric blankets have timers that automatically shut off after a certain period of time. If you prefer to sleep with the blanket on, make sure to set the timer accordingly or choose a blanket with a specific sleep mode.