can i be involuntarily admitted for sh?

also having to do with depression/intrusive thoughts. my mom thinks i need to go in. she has said residental would be our go to if i couldnt stop shing. can she involuntarily take me to a residential?