The roof will keep rain from falling directly in.
If water flows downhill into the coop space, then you will probably have a wet mess inside.
But if the water flowing downhill gets diverted around the coop, you will probably be fine. A ridge or a ditch uphill of the coop could help direct water...