You will usually get away with that but a guy who cares will just wet the pipe
near the joint. Some folks will make a case for thermal shock and the
difference in expansion rate between solder and copper weakening the joint. I
bet you can't do it on a job where an engineer is watching.