The little things that run off tiny button batteries? Almost certainly not. The bigger/more powerful ones might.
That said, don’t. It’s stupid to try, especially if you think it could. I mean think about it. You think it might blind a pilot? That’s a lot of lives your potentially putting at risk.
What possible motivation could cause you to want to risk it?