Should I tell my OB I’m depressed?

So I do have a history of depression, but as of late it’s come back full swing. I’m 31 weeks pregnant & I just feel like I can’t function. I want to get help for it but I’m scared they’ll think I’ll be unable to take care of my baby when she’s born & take her away or something. What will my OB do if I tell her I’m depressed again?