Yes as long as your forum database allows EXTERNAL MYSQL CONNECTIONS and you input the correct mysql info to connect to it the answer is yes. Just remember two things.
1. if your using vbulletin you cant use the enhanced integration.
2. your not going to have a one sign on integrated login because there are two different domain names whereas cookies only work on one domain. so the users would have to login to each application.