That’s perhaps one aspect of it. But there are more or less intelligent ways of achieving the same goal. There’s also intelligence in determining whether a goal is itself intelligent or whether there is a more desirable outcome. Often things we thought were intelligent at the time prove to be less so given later events and vice versa.