Black boxes are designed to survive impact at hundreds of miles per hour into the ground. While hitting water at those speeds isn’t much different, they most likely did survive. How long they’d stay readable after years in the ocean is, of course, not easily determined.