If a person is found guilty of a crime in court then they may be given a prison sentence.