en passant rule
No. En passant was created when the pawn could move two squares at the opening. Its to prevent players from moving the pawn two squares to keep their pawn from being taken.
Here is a good chess.com resource for learning players, or anyone just wanting to review the rules. It covers en passant under the section titled "Discover The Special Rules."
https://www.chess.com/learn-how-to-play-chess