Is it true that can a pawn take a piece in front of it based on the following text?

Unlike other pieces, the pawn does not capture in the same direction as it moves. A pawn captures diagonally forward one square to the left or right (see diagram).
no