If it targets the on-premise (target=internal) then the answer is yes, you can connect directly to another database.
If it’s for the SaaS world (BC online) then you have to create an interface layer by using web services (you cannot directly access an external on-prem db)