from what i know there are 2 versions of the E34 rear diff casing. Do check properly..
And yes, if you get the right E34 rear diff, just need to change the rear cover from an E30 med casing... and also the output flanges needed to be changed too... I've done it before.....