Yes, a well-configured VPN can shield your DNS queries from your ISP, effectively preventing a DNS leak. However, be sure to choose a VPN that specifically offers DNS leak protection like X-VPN, as not all VPNs provide this feature.