Yes, most ad-blocker apps contain a malware scanner that prevents your device from getting infected.