Yes, it is safe to sleep, but make sure to use a clean pillowcase and avoid sleeping on the infected side to prevent further irritation.