Well, when specified for it. The inlet air and the damp are hard on ordinary hardware, so near the water we use 316-grade stainless for cable and glass, finished steel or aluminum elsewhere, and seal every connection. On a historic porch we also check the structural backing so the railing anchors properly. Built this way, a railing handles years of marine exposure without corroding or loosening.