In most cases, drug rehab is voluntary, meaning that individuals choose to seek treatment on their own and participate in the program voluntarily. However, there are some situations in which drug rehab may be court-ordered or otherwise required.

In some cases, individuals may be ordered by a court to participate in drug treatment as part of a criminal sentence or probation. In these cases, drug rehab is not voluntary, as the individual is required to participate in order to meet legal requirements.

Additionally, in some cases, individuals may be required to participate in drug treatment as a condition of employment, as part of a treatment program for a medical condition, or as part of a child custody agreement.

While court-ordered or mandated drug treatment can be effective in helping individuals overcome addiction and address related issues, voluntary participation is generally considered to be more effective, as individuals are more likely to be invested in their own recovery and willing to actively participate in treatment.