If I go to the hospital for panic attacks will they help me?

I’m 6 weeks pregnant and got laid off right after I found out I was pregnant. I also have had recurring miscarriages. I’m trying not to stress but my anxiety is extremely bad and I’ve been having panic attacks that are making me extremely restless and pace the floors. If I go to the hospital will they do anything for me? I’m not sure what’s safe to take for anxiety during pregnancy but I am really in need of it because I can’t continue to suffer like this.