en passant is when the starting pawn could be captured if it only moved 1 square rather than 2
so e6 just looks across as “f6” does a “ne ner ne ner”
White would have to have a pawn on either e5 or g5 for the rule to be applied; so yeah, by moving to e6, white can no longer use en passant.
Most of the time, newer chess players are not familiar with some of the stranger-looking "special moves" that are indeed totally legitimate.
For instance, many players (even some who have been playing for quite a while!) are not familiar with the special pawn-takes-pawn moveknown as en passant (literally "in passing"):

Black has a pawn on F7, white has a pawn on E6. If black moves to F5 does the en passant rule apply? Or does white relinquish his option by moving to E6?