I have not done this with a canister filter but I did do this with a return pump. It worked well ,I do not still have it running.
You just have to insure that the heater remains in water, or you will at least have to remember to kill the heater when you do maintenance.