No, it isn't.
Because the distance from the banana to square b is 3, and the distance from square b to the monkey is 1, so the distance from the banana to the monkey is 4. You measure the most direct path.
This doesn't violate the requirement that you count around a solid obstacle! I'm not...