16 Pin IDC to 40 Pin with different pinouts
Sure, it's possible.

It may help to carefully disassemble the connector to expose the individual IDC contacts. Then, you can "punch down" individual wires onto their contacts, eliminating the need to try to keep 16 wires all lined up at once when trying to crimp it in the usual way.