Hybrid or cloud base database

Hi ERP Expert ,
My question it is possible to have both local hosting with at the same time cloud base database. We might be buy the ERPNEXT for our 4 company with man power of 1000 people and our industry is Manufacturing if this possible we will consider the ERPNEXT as ERP provider.