Please refresh my memory on tranny interchange

I found a really nice 87 D100 with a slant and a bad 727. I'd love it to have it for dump runs and to haul my kayaks. Can I use the 904 I have from a 68 or so Valiant? I wasn't sure if I'd run into tail shaft problems, or possibly need to swap the input shaft from the driveshafts. I appreciate any advice......thanks...

Ken in Shrewsbury, PA