you can, I assume you are soldering and using heat shrink over the joints, and talking about the 20/24pin connector?
you might be able to find a 24pin to 24pin connector. http://www.ebay.co.uk/itm/24PIN-TI-24pin-90-Degree-right-angle-Extension-18-/130511942718