can a pawn take a piece in front of it
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).
Pawn (chess)