They will go inside if they need to. Ducks are pretty much weather-proof.
I do shut my ducks in at night because of predators, but they have both a coop and a secure night run. My guys prefer to be in the night run. They will go into their coop and putter around, but they sleep outdoors. I...