Yes. I've taken ES Vicodin for both migraine headaches & a disc problem in my back. Reactions to taking them differ from person to person.
I'm surprised your doctor didn't give you a shot of cortisone in each knee & prescribe a non-steroidal anti-inflammatory, before going the Vike route.
~Boomer~