Fireworks can be set off in the rain, but they must be located inside a sealed container to be lit. Typically, professional firework shows will have a contingency plan like this in place, in case of rainfall. Sealed containers will help to limit the amount of rain and moisture hitting the firework.