Of course the can, and since they are weatherproof, the humidity won't hurt them.

I use those sockets in my monitor cage.

Follow safe wiring practice, and you will be fine.
-----
Regards,
Wayne A. Harvey
Thamnophis US
Varanus US
too many darn snakes to list anymore...