Yes it should be fine. As long as no parts are exposed to where they can come in contact with you or the water, and as long as the lamp is still securely held in place, and as long as the glass/quartz envelope of the lamp is intact, you should have no issues, safety or otherwise.