Could it happen that a knee replacement surgery treat patellofemoral syndrome or chondromalacia patella?

Last resort treatmen. Running causes high forces in this portion of the joint. So does arising from a chair, going up/down stairs. Treatment consists of activity modification, ice, anti-inflammatory meds and therapy aimed at flexibility and strengthening, especially of your core. Doubt knee replacement would be needed unless other compartments of knee also arthritic. Patellofemoral replacement as a last resort.