I’ve got Ubuntu on my 2015 MacBook that worked out of the box except dedicated/integrated graphics switcher and the webcam. I also installed Windows which Apple puts out official drivers for. It’s just a computer, you can plug in a USB drive and install other operating systems just the same as any other laptop.
It’s crazy I needed to enter “develop Firefox” as an other field for what Mozilla’s main focus should be.