If you’d install something like lineageOS you might be better off, because your phone doesn’t have to run all the bloatware Samsung ships with their devices. Some nice features of the device may not work then, though. I run custom roms on all my android devices.