Sure.
Build your site on your local computer, or in a staging area on your shared hosting server. When you’re ready, create your “real” domain name, and migrated the site. There are many methods, I prefer this one :
https://en-ca.wordpress.org/plugins/all-in-one-wp-migration/
Thanks for your answer but I wish I could have just to change the domain name, is it possible without affecting the inside of the new website on the new web hosting ? Sorry if my question seems to be naive, but I really want to be sure before to start building the new website version on the new web hosting.
Clearly, I want to rebuilt my new website version on a new web hosting and at the end once it’s done, only migrate the domain name to the new version of my site.
????
Yes. Use a migration tool like the link posted in earlier reply.
Here’s how it works :
https://help.servmask.com/knowledgebase/all-in-one-wp-migration-user-guide/