Pawns are important for controlling key squares, but moving too many pawns in the opening instead of developing pieces is a frequent mistake. Pawns cannot move backward, so each advance should have a clear purpose: freeing a piece, controlling the center, or preparing castling.
Generally, in the opening you should only move the pawns necessary to free your minor pieces (bishop and knight) and control the center. The rest of pawn development can wait for the middlegame. A typical sequence would be: e4 (central control), d3 or d4 (free light-squared bishop), and perhaps c3 or a3 depending on the opening. More than 4-5 pawn moves in the first 10 moves is usually excessive.
Flank pawn advances during the opening are especially dangerous. Moves like h3, a3, or g4 without concrete tactical necessity weaken your position without developing pieces. When analyzing your games, count how many pawn moves you make in the opening versus how many piece moves. If the ratio is unbalanced toward pawns, you have found an area for improvement.