No, your not going to get an electric shock. It's possible that the components in the cable that cause the phone to recognize it as an original Apple cable may corrode and fail. If you used it and there was still water on the end, you could have gotten water in your phone which is never good.
If it were my cable, I'd buy another one.