Yes, Flatpak fixed a lot of the old shenanigans we used to have when everything was either native package, or a binary to hope for the best and install libraries manually, or source code to collect everything that’s needed for building and again, hope for the best. It is however designed to provide a way to install graphical apps, but can’t handle everything native package does (like out-of-tree kernel modules, CLI utils, system services)