Given the *punctuality*of German trains, I would never make a correspondance between trains under 20-25mn. No, really.
The question is what kind of ticket your friend bought. DB is like many airline companies in this regard, there are the lowest priced tickets where you are bound to your train and no changes are permitted, some where you can modify against a fee, and some that are full flex.