wet pack

Can a birth control pack get wet and the pill stills work? If they're still sealed?