Yes, a VPN can stop doxxing to an extent. It may not safeguard you entirely, it gives you a lot of protection. A free VPN or untrustworthy VPN can never help you avoid doxxing. You need to choose the best VPN with all the security features to protect your privacy.