PPD question...

If I were to tell my doctor that I have occasional thoughts of harming myself, and have had plans but not felt true intent to do it... would they put me in the hospital or take my baby away??