As long as it's installed properly, it can be safe. But i recommend to have a real electrician for installation.
closets