Sure. As long as it doesn't put your own King in check.
Here's a chess "problem" for you...
White played 1. Bg2+ and said "Mate next move".
Black chuckled and replied "Next move? How about THIS move?" and played 1. ... d5 discovered check.
White captured the Pawn en-passent, and Black objected "Wait, wait... you can't do that! You're in check!"
White replied, "No, YOU'RE in check. Your Pawn never reached the d5 square. It was captured en-passent while crossing the d6 square. You can't check me... you never blocked my original check."
The two players argued for a while, then called over the arbiter.
Who was awarded the point?
If taking a pawn En Passant gives a discovered check to an opponents king...can you do it? I can't figure out why I cant do it.