There are a lot of similarities between program management and product management, so experience in one can be very beneficial in the other. Both roles involve working with a team to develop and launch a product, and both require strong project management skills.
Program management is focused more on the big picture and overall strategy, while product management is focused on the details of the product and how it will be delivered. However, both roles require an understanding of the market and the users, and both need to be able to work with stakeholders to get buy-in and make decisions.
In short, program management experience can be extremely helpful for product managers. It gives you a better understanding of the overall process and how to manage a team of people to get a product to market successfully.