We could find suttas which seem to point that understanding is a goal, but it is always understanding that leads to freedom. Then there are also various quotes that say the path is taught with the freedom of nibbana as its only goal. In a way wisdom and liberation are the same, but if we look upon it with a wrong view, they are not.
Some people may see the accumulation of knowledge as if it is their
knowledge. Something new to attain or become. To become a wise person, able to share their views. It's not hard to get stuck in such an idea. On the other hand, those who are not interested in reality at all, might not investigate it enough. So it's the ground between those two where it's best to walk, I think. Training wisdom for the sake of letting it all go, wisdom itself included.
At certain points in my practice I had to convince myself it was better to investigate a state of mind, to get to see its source. At other points, I wanted to understand "it" in such a way that only caused more craving and restlessness. This happens when I wanted to understand it without having the clearer picture of why. It's not understanding to just know, it's understanding to be a bit more liberated. Also, I think it's wise not try to understand something outside our own experience, but always reflect back on our own meditation to understand that. The four noble truths are right there.