Yes, the same application -Google maps- allows you to plan and calculate the distance from point A to point B with the optimal route in distance and time (calculated depending on the chosen means of transport).