Unless your knees are worn out and bone on bone...
I had sprained my knee pretty bad in 2017 and the doctor sent me for knee x-ray. She told I had bone on bone in right knee. I hate surgeries, so began walking on treadmill. Now at age 83 my knee is pain free most of the time, unless I over use it, then i wear a knee brace until pain is gone.