Yes, you can buy a domain from GoDaddy and then host it elsewhere. This is actually a good decision as you should keep your domain host and your website host separate.  After you purchase a domain from GoDaddy, you can buy a hosting plan from one of the best all-in-one website hosting services, Bluehost.