Yes, that works. There are versions that are not protected, those designed for wet rooms, and those that can be installed in the shower. I've done that too. The only disadvantage of the ones in the shower: you cannot change the direction (so the light shines straight down).