Legalization would eliminate the harms caused by prohibition, but it would not eliminate the harms caused by drug use.
Legalization would create a new stream of tax income.
Legalization of drugs would lead to legal drugs being manufactured, which would create income from new taxes.