It is possible. Snorkels are designed to keep rain and moisture out with their shape and grid at the opening.
Water that enters the air ram travels along its walls to drain slots below. The slots prevent the water from getting close to the engine.