If the upgrade is in place, it will upgrade the databases for you, but if it is side by side then no, as with each release of the product the databases change and due to you restoring the db from 2005 it wont run the upgrade scripts on the DB to make it a 2008 db.
You will need to script logins, linked servers, jobs etc.