Not on its own. Ads are mostly targeted through cookies, sign-ins and device fingerprints, which a VPN doesn't change. Some VPNs include tracker blocking, which does more than the VPN connection itself.
Quick answerA fuller guide to this question is on the way.