You will need to check the specifications for each of the MAC's. One issue might be that the batteries might be non replaceable<==meaning Apple Service. The following link won't answer all your questions but will be a good place to start.I have a macbook pro 7,1 that stopped working now I got a macbook pro 5,1 but the keyboard, screen and battery is faulty, my question is can I use the 7,1 parts to replace these? Please help me🙏
What you can d is log onto the Apple Support Community and post the question.