Adding forum in subdomain help in seo?

Everyone says Google consider subdomain as a different site.
So, Adding a forum in subdomain will help in ranking my post on main domain?