In the same joist/stud bay? Sure. I've worked with so many plumbers I couldn't begin to take a swing at the number, but I've never heard anything about electrolysis or any such thing like that.

Touching? No. Hot water, cold water, doesn't matter. Not a good idea. Vibrations, heat, cold, etc. There are too many variables to even consider doing this. You can get around them without problem. If not, at least use some pipe insulation jacket between your wire and the pipes.

Good Luck!