If its been run into the trap of the sink via a washing machine outlet then yes maybe.
That is exactly how it has been done.
You guys are smart
Cutting a section of the damaged copper is easy, but if the entire section is to be replaced, it is very hard as the wall has to be broken to get access to the main communal waste pipe.