The cat 6 is fine, it's the power cable that's an issue. Realistically in this scenario it's fine too, it should be branched off of a GFCI. The only issue with the network cable is that it picks up static from lightning and blows some equipment, you can put Ethernet breakers on both ends though.