Yes, dogs can sleep with an e-collar on. It is generally recommended to keep the e-collar on at all times, even during sleep, to prevent the dog from licking or biting at its wounds. While it may take some time for the dog to adjust, it is essential for their safety and recovery.