Yes, gasoline and mileage are two separate expenses on Form 2106(job-related expenses). As long as you are not reimbursed for your mileage you can claim it. See below on how to enter it onto your return.
Follow the instructions below to add
a new vehicle:
1.
Select "Federal Taxes" at the top of the page
2.
Select the "Deductions & Credits"
sub-tab
3.
Scroll down to "Employment Expenses" and select "Show
More"
4. Select "Start" next to "Job
Expenses for W-2 Income"
5.
Select "Edit" next to your occupation(Or enter it when asked)
6. Continue forward through the screens answering the questions to enter
your vehicle information and to enter mileage
Job-related Expenses