Yes. BUT why would you want to do that when the metal wire is a much safer and efficient way for electric power transmission?
Water in a pipe can be used to transmit electricity. But it has many flaws to it. For once, conductivity in water varies. Some parts of it have a higher composition of the mineral, others not so much. Sure, it can be standardized and made constant. But that would come with a big investment on the right infrastructure, which wouldn’t be a very cost-effective measure.
In comparison, copper wire, with same grade and dimension, maintains a uniform conductivity throughout. So, it stands as the best option to transmit electricity.
Besides,
electric power transmission through the
water in a pipe also has many risks. If you're transmitting high voltage, it risks huge single Line-to-Ground fault. To prevent that, the entire length of the pipe should be insulated. This, again, isn’t a cost-effective step. And then yes, using that water, even with all the at-large precautionary measure, will always have the risk of getting electrocuted.
In short, while water in a pipe can indeed be used to transmit electricity, it's not a very efficient, safe and cost-effective move.
Hope this answers your question.