Mandatory minimum sentences

Do you think mandatory minimum sentences serve any real purpose? Do these types of sentences deter offenders