One can certainly design one's apps in such a way where the cloud provider doesn't necessarily matter -- docker containers running on VMs, for instance.
If you use a bunch of things like SQL Server, Document DB, etc. that is certainly much harder to migrate than PostgreSQL running on a VM.