Yes. You can register the domain beforehand you develop your website. Proactively registering your domain is always good as there is a chance for someone taking your domain within the time of your website development.