Are modern prisons just farms and ways to catalog people rather then rehabilitation centers?

What do you expect people to do after spending years in there with felonies and such?

you cant get a job or anything with felony and most go in young so they have no job background