If the water heater uses copper pipes, the copper still gets into the water. And even with plastic pipes the trace amount of plastic may still end in the water and nobody knows if drinking such water for, say, 40 years is safe.
So do not use hot water for cooking/drinking.