Using the old panel as a splice/junction box is a common installation. usualy as long as you can close the cover, and secure it with a screw it,s acceptable.
It would be also acceptable to splice small old conductors in the new panel to extend them to termination points.(312.8)