Can I swap a hard drive from one laptop to another [Read Details]?

Can I swap a hard drive from a dell laptop to a Lenovo laptop when the hard drives are exactly the same. I have a dell laptop with a 350 gb blue western digital hard drive and a Lenovo laptop with the same exact hard drive just broken. So could I clear the hard drive & move it to the Lenovo & have everything work fine?

Added (1). If the dell laptop that has the hard drive I want to switch to the Lenovo is already reset & just needs set up do I have to do anything? Could I just take it out the dell & put it in the Lenovo with out any problems?

I would just use Google drive problem solved

Yes just reformat the drive and then reinstall the operating system for the Levono