Panic attacks

Are panic attacks dangerous during pregnancy??? Past week or so I’ve had the worst panic attacks and trouble breathing. I’m 30 weeks, should I be concerned and call my doctor??