Anxiety medicine

Kay • Pregnant with #1!
So I will be 17 weeks tomorrow and have had crazy anxiety attacks over the littlest things. Doctor is recommending something called lorazepam? Is it okay to take? I know doctor wouldn't be prescribing it to me if it wasn't okay to take during pregnancy but I'm still scared. Any thoughts or insights?