Yes, that should work -- or you could just leave the setup alone and make computer a's name an alias for computer b in DNS.
I need to take a running windows desktop box that's part of a domain, give it a new computer name, and then continue working on it (with the box having the new name), without having to reboot at all.