Change from 1099-NEC to a W2 - where do I write off mileage?

Hello,

I have been "self-employed" as a church cantor for 10 years where a 1099-NEC was issued yearly. Then in 2022 switched they switched me to form W2.   Can I still deduct mileage for my travel to/from the churches?