yes you can do this, however notice: this is wasteful as you have to run pump and heat from steam condensing is not recovered. You can heat up incoming water with condensing steam - this is called vapour recompression distillation. alternatively you can use heat pump to move heat around