There are some cases where outpatient treatment may be an option. For example, suppose you have a strong support system and aren't actively experiencing thoughts of harm, but have trouble caring for yourself.
In that case, you may be able to stay with a loved one for a short period of time and seek outpatient treatment safely.
If you have thoughts of self-harm or harming others, inpatient treatment is necessary for safety reasons. If there is any question of safety or lack of ability to care for yourself, seeking a mental health evaluation at the emergency room is crucial.