it is a good idea to turn on heating at the end of every air conditioning cycle at home for keeping filters clean against molds?
No.

Your filter is before the fan, before the cooler. Condensation occurs far after that.