Yes!
Water heaters are electric devices. Just like any other machine, they can be damaged if overworked and overused for a long period of time. Not switching off water heaters after use can leave a scope for damage and short circuit, leading to greater risks of fire accidents. In order to avoid any such circumstance, it's always advised that water heaters are either unplugged or switched off after use.