Compounded drugs are valid treatment. Prescribing them is legal. However, accepting (or paying) kickbacks to prescribe them is a crime.