Yes, but make sure you rename the upload folder to match your forums directory. The new config.php will be called config-sample.php, so you will need to edit that and input your database details, ect. Then you can delete your current config.php.
After, you will need to run
www.yourdomain.com/install/upgrade.php and follow the upgrade script. Then you're done!
Regards Jason