Modern code requires lead-free solder and brass fittings ... But while you may reuse copper pipe that's in good shape, reusing old fittings and connectors can be more trouble than it's worth.
But there are key steps you must do in order to solder copper pipe correctly. See how it's done: Click here to see more from the GOT2LEARN YouTube channel. For some people learning is a chore ...