>I'm not sure if I can be a PM if I'm not able to code things the right way myself.
You don't need to know how to code the solution to be a good PM, it's a different set of skills.
QA - writing testcases, automated regression tests is also a possible path. Lots of companies want QA engineers that can write automated regresion tests (selenium etc)