Ask a Neurologist. Get Answers to Your Neurology Questions.
In almost all cases, this should be OK.
However, the MRI people will want to know when you had your knees replaced, and by what company, so they can ensure that this is safe.
But we do MRIs on people with hip and knee replacements, as well as spinal hardware all the time.
Pacemakers and batteries can not have an MRI done.