Right!
All you need to know is well documented in "Microsoft Dynamics CRM 2011 Installing Guide.doc" in Microsoft Dynamics CRM 2011 Implementation Guide
Basically you need to backup CRM 4.0 database, restore it to the new server and then run the import wizard.
Be sure to meet all the pre-requisites.