After moving day, your dog needs time to adjust to his new home. To avoid behavior problems such as eliminating on the carpet, your dog must have a decent amount of adjustment time. To facilitate this, a dog room can be created. In an extra bedroom or laundry room, your dog should be kept with familiar items such as his crate, his bed, toys, food, and water, and anything else he finds comforting (like a blanket from his crate). He should be kept in this room for a few days or until he seems comfortable and calm. It will allow him to keep the comforts from his own home and things he is used to while also smelling his new home and accommodating himself to that. After this, a small area of the home near that room (with access to the dog room) should be gated off so that your dog is not overwhelmed with the whole house quite yet.
Make sure while your dog is in his dog room and even after he is let into the entire home that you keep up with a regular feeding and walking schedule so that your dog feels normal. Soon, he will get used to your new home and not even remember that he was anywhere else. He won't ever want to leave.