It depends on the mental state of the prisoner, whether he can realize his mistakes and repent of his crimes. If he can actively cooperate with the government to transform himself and turn over a new leaf, there will be no "sequelae" after he is released from prison. But some prisoners are so stubborn that they don't even know it. In addition, they were sentenced to more than a few years, and they didn't want to meet their acquaintances after they got out of prison. It is difficult to communicate with others, they don't want to stand in society. This may be the so-called "sequela".
Prison is not a health center or a fitness school. People who come out, especially those who have served a long sentence, will leave a lifelong "trauma" whether psychologically or physically.