Can I share a spreadsheet with someone that isn't on the same network as me?

Such as a friend across town, country, or even the world. Anyone who isn’t on my home network?

Also I know I can use things such as Google Drive or OneDrive, but I want the real time collaboration ability.