Yes but every program you run can do anything you can do with your user account, which is catastrophic.
It's not like Flatpak is perfect, but at least it uses primitives that we understand through containers, and can apply to already existing programs. Even though they were written without playing in the sandbox and might expect full access to services and files, we can fudge it for the most part with bind mounts and open up safer doors through Portal and widget toolkits over time.