Not always. But sanding is an important part of prepping a piece of furniture for painting. Sanding creates small imperfections in the furniture’s surface, which allow the paint to adhere better.
If you plan to skip this step, using a high-quality primer appropriate for your chosen paint type and furniture material is the best alternative.