It is important to discuss this question with your doctor. Taking a medication like Alprazolam (Xanax) should not affect your levels of thyroid stimulating hormone (TSH), the levels of hormones released by the thyroid itself, or the ability of the lab test to make an accurate measurement of any of these hormones.