Yes, a court or district attorney or prosecutor or city attorney will always take into consideration the totality of circumstances which includes your past, criminal record, or lack thereof. If you have a clean record, chances are you’re gonna be sentenced with more leniency than if you’ve had prior convictions or arrests in the past.