Pretty much what @PitaJ said, yes. Just update your DNS records so the new domain points to your NodeBB's IP (or reverse proxy), and update config.json with the new domain.
Everything uses relative links, and url in config.json is only ever used in situations where we don't have any context as to what URL to use, such as email digests.