Hot water urn on Shabbat timer

Can one put a hot water urn on a timer before Shabbat so that, for instance, the water is being heated at night, stops reheating overnight and starts reheating again Shabbat morning?

No problem