I assume we're talking fully modular PSUs here?
If the PSU is the exact same make and model, and you're sure the cables themselves are OK, then yes.
If they're different, it's unlikely, if the PSUs are the same OEM and series then it's sometimes possible though. You'll need to provide more info to say for sure.
Please note: do NOT do this until/unless you're positive it will work. Even though the cables may look the same, the pinouts may be different. You don't want to give your motherboard 12V where it's expecting ground, for example - you'll kill something, possibly several somethings.