Sure, you can, but Shared webhosts are not suitable for most websites.
It’s not only you buying a domain name and cPanel account, creating a catchall inbox and everything is done at once.
A lot of shared webhost company, this company use a diff. firewall which is so hard to avoid it to complete your setup.