To put it succinctly, yeah, that's basically the idea.
Although it isn't always easy in practice, because by nature it's always context-dependent, and there's no hard-coded rationale or logic tree behind it, just a well-tuned intuitive finesse (when it's done well, at least; and some awkward/painful learning moments when it's done poorly).
But since upaya takes place on the level of conventional reality, knowing one's audience is a prerequisite, and it can lead to some awkward misunderstandings when applied across cultural barriers. Which is why it requires a keen perceptiveness to pull off (i.e. active listening).
