Not an expert but i don't see a problem. I use Snap-packaged compilers on Ubuntu all day, and have used Flatpak'd IDEs