Anti anxiety medication

Is it okay to ttc while taking anti anxiety medication? I had a missed miscarriage which lead to frequent panic attacks so I was prescribed some medication to help.