The answer is yes. However, the other respondent provided you with an inaccurate (and non-parallel) sentence correction.
The correct syntax -- and parallel structure -- is...
The doctor not only knew that her patient would improve, but she also knew that he would completely recover.