Is it possible?

Plz help me one more.
My Forum server has one main domain and several subdomains.
Can I build several discourse forums on each domains using one database?
And Can I build like this?:
-On Main Domain, possible to local login and signup.
-On Sub domains, with DiscourseConnect, connect to my sites.
If possible, Please guide me to build.
If impossible, Please tell me the reason.
Thank you.