Ad-blockers don't do it directly. However, they prevent you from viruses and malware that may attack your device through ads.