Yes, you can have both
CryptPad is a collaborative office suite that is end-to-end encrypted and open-source.Try CryptPad
CryptPad includes all the tools needed for productive collaboration: spreadsheet, text, presentation, form, kanban, whiteboard, and more...
All data on CryptPad is encrypted in the browser. This means no readable data leaves the user's device. Even the service administrators cannot see the content of documents or user data.
CryptPad is free software. Anyone can host the platform in a personal or professional capacity. The development team offers subscriptions and support contracts for ready-to-use deployments.