Yes, it is safe to leave modern humidifiers on all night. They can improve sleep and alleviate dry skin.
To maintain optimal humidity levels, use models with automatic shut-off features and follow the manufacturer's instructions and safety guidelines.