Yes, that should work.
Hard drives come in two main sizes, 2.5" and 3.5". In general, desktops use 3.5" drives (which can have increased capacity, due to their increased physical size) and laptops use 2.5" drives (to reduce the size of the computer). When purchasing [http://www.newegg.com/External-Enclosures/SubCategory/ID-92|an enclosure], you should make sure to get one that fits the right size - if in doubt, choose one that fits both sizes.
It is highly likely your hard drive is formatted with [http://en.wikipedia.org/wiki/HFS_Plus|HFS+], which will work just fine on any newer Mac without any additional effort.