inlet filter will help some. But as the water is heated, the minerals that are in the water will separate from the water and attach it's self to the water coil. You may have to flush the coil more than normal to prevent total blockage of the water coil.
I have attended several classes where they had cut aways of water coils completely blocked from mineral deposits. so I recommend a good flush depending on water quality
I use these as a treatment before the water enters the heater:
The fitting that these cartridges screw into was purchased at the local plumbing supply house and is specifically for this purpose.