Yes, ad blockers can prevent JavaScript execution, including onclick events. They might block certain scripts, leading to non-functioning events. Test your code with and without ad blockers to confirm.