Yes, you can. If you’d like to change hosting providers, you need to join a new hosting provider, while still keeping your old account open. You then need to connect to your old host’s FTP and download all your files, then connect to the new host’s FTP and upload them there. Some providers, including Hostgator, will sometimes actually do this for you, so it’s always worth checking.