Involv installs on top of SharePoint Online in Office 365 or SharePoint on premise, in a new site collection, meaning that all the content in your document libraries is still there and can still be accessed or used. The only thing you would need to do then is move them to the new intranet.