You can try doing it, but I don’t think it’d be a wise decision. Outdoor lights are weather-resistant; they can last in any weather, especially during rain. If the lights are waterproof, then it’s okay to use them outside or else you won’t get the best results.