I think in one of the Scandinavian countries, people cannot be charged or punished for attempted or actual escapes from prison, jail, or custody, as the desire for freedom is assumed to be a natural human motivation.
Trying to escape from prison is victimless. Scams, thefts and rapes have victims. Some argue that crimes without victims like using drugs are not crimes. They, of course, could be illegal and result in fines and related but not in restrictions of liberty like imprisonment.
In this framework, yes. But see, even if no time is added to the sentence he may lose eligibility for early release. And he will be prosecuted for any crime committed in the process. Look, I'm not advocating for A or B. Just being descriptive.