Correct.
Now see if you can figure out an algorithm that let's you take a table that contains the shortest known distances from any city to the target destination and update that list with distances for cities that are just one more flight further away from any city that already has a known distance.