A person who commits a crime may be convicted by a court and sentenced to prison.