Yes, the cost of transportation for medical treatment is a deductible medical expense, but there are some conditions.
You would have itemize deductions and reduce the medical expense deduction by any amount reimbursed or paid by insurance.
The deduction for medical expenses is also limited to the amount exceeding 10% of your Adjusted Gross Income (AGI).
See the following for additional information: https://ttlc.intuit.com/replies/4774888