Is it possible for a heart valve to be so damaged that surgical replacement is not possible?

I have a unique question and I am unable to find the answer anywhere. Please tell me is it possible that a heart valve is damaged so severely that it cannot be replaced? Doctor said (during surgery) that infection is very severe, we are unable to put the valve at its place. If this condition is possible, then can it be diagnosed or observed before surgery by means of MRI?

Infections can severely damage the heart valve and make it leak. Usually, if the infection cannot be cleared or if the leakage is severe, the valve will need to be totally excised to eradicate the infection, and be replaced with a new prosthetic heart valve to prevent valvular regurgitation. If the infection severely damages the adjacent structures with an abscess, tissue replacement may be required with biologic substitutes. I do not understand the doctor's comment. Perhaps you can speak with him again for clarification.