In most cases, yes. Talk to your employer about your options for keeping your job while in rehab. These options may include:
Paid Time Off
The Family and Medical Leave Act, which provides up to 12 weeks of unpaid time off so you can seek treatment for a medical condition (such as addiction) that hinders your ability to work
outpatient programs, which allow you to receive treatment while still living at home and regularly going to work