I see many people, over different threads, confused or even agonizing between an expensive cab fare or the last-mile of a trip from the airport using the train services available there.
It seems simple, but many miss a reasonable compromise: if you are not confident about using public transportation all the way to your hotel/AirBnB/whatever accommodation, but still wary of the costs or reputation of taxi services from the airport, take a train between the airport and the main train station of said city, and then complete the journey by taxi, Uber or other hailing-app car.
For airports located quite far from the city center (Milano Malpensa, for instance), this allows some savings in the costs of using a cab from the airport, while also helping you to complete the last short ride to your accommodation (assuming it is central), instead of having you to walk long distances or negotiate city buses or trams with luggage - if that is an issue for you.
There is no bespoke rule that you cannot "cheat" your way into your accommodation mixing public transportation and hired car rides.