Can I replace the thermopile with a thermocouple in my water heater, and have it work properly?
If the thermocouple doesn't generate sufficient power, it won't function properly.  The replacement device has to produce enough power, to hold the circuit closed.