Can we add backend custom code?

Are we able to add backend custom code & databases to build complex apps in workflow or do we have to export HTML & CSS code from Webflow to build complex apps? Either one will beat writing a bunch of HTML & CSS code manually from scratch.