Generally speaking, the professional development direction of programmers in the company is three main lines: technology, management and product. Those with excellent skills can take the road of technical director; Good at dealing with employees, strong planning ability, suitable for project management; The product manager you mentioned is generally responsible for product design, promotion and marketing. Besides some knowledge of software engineering, it must be supported by marketing theory. Individuals also need hard work and extroverted personality. After all, it is quite difficult to sell things from other people's pockets.
Read more books on enterprise management and operation when you have time. Although there are many theories in the book, which are not the same as the actual operation, the basic principles are similar, which is very helpful for you to understand other positions other than programmers.