Saving ps4 data

I took apart my ps4 and im pretty sure i screwed it up. If i buy the same model can i take the hard drive out ofvthe old one and put it into the new one to save all my games and data

To my knowledge there is no way to take data from a non working PS4 HDD and get it to a new one.