There is no problem with you leaving the diagnostic lab immediately after your MRI. In case you have been given a drug to help you relax during the scan, you should ask someone to drive you home.