Yes, but did you buy a general purpose computer? I don’t think smart phones were ever marketed that way.
Now, if you want to install Linux on that hardware you should be allowed to do so.