That really depends on the phone. There's definitely phones where you can unlock the bootloader. It's not as common as it should be though, for sure.