Yep, that should be how it works since it even work with AGH enabled or DNS-over-TLS.