No, but weighing your food can improve accuracy, especially if your goal is fat loss, muscle gain, or body recomposition.
If you want the most precise results, using a food scale is the best method because portion sizes are often underestimated. However, if you prefer a more flexible approach, you can still make good progress by using consistent portion control, reading labels, and tracking intake as accurately as possible.