I wouldn't.
Even though I'm capable to manage both teams and products, I really don't like it. And do you know what kind of work people who don't like their job do? Exactly. Crappy.
I think anyone with the right ambitions can be great product managers. Despite what others say, they don't even need to have coding nor technical background. They just need a trustworthy engineer who can bring them up to date with all the technical stuff when it's needed.
Now don't get me wrong. I don't say no developer is going to ever be a good product manager. It's just not for everyone.