Yes, if you had mileage expenses for your W-2 job for which you were NOT reimbursed, you can deduct mileage related to work as a job-related expense on your tax return. Commuting mileage is not deductible even though not reimbursed.
Note, though, that job-related expenses are included as itemized expenses and, therefore, only deductible if you itemize instead of taking the standard deduction. Plus, the only amount of job-related expenses that will be included in your itemized expenses are those that exceed 2% of your adjusted gross income.
Here is more information on deducting mileage and where to enter those expenses in TurboTax:
https://ttlc.intuit.com/replies/3300445
https://ttlc.intuit.com/replies/4800418