It may be if it is job related expenses. In IRS publication 529 it says
“...You may be able to deduct the following items as un-reimbursed employee expenses...” which includes “Legal fees related to your job.”