Yes. It may be right for society to punish a person who steals with prison time. If that person is a starving child who stole food to live then putting him in prison would not be just. Putting him in an orphanage or in foster care where he will be fed, educated, and looked after until he is adopted would be both right for society (he will no longer steal) and just for him (he will no longer go hungry.)
You can help the HubPages community highlight top quality content by ranking this answer up or down.