The short answer is "yes." The bigger, more important question is: "Was it WRONG?" Like many times, this can only be addressed on a case-by-case basis (and with full information). Additionally, though never fully expressed, what often matters in our decision-making is motivation.
For example, when Jesus says that "anyone who has already looked at woman to desire her has already committed adultery in his heart" (Mt 5:28) he patently declares that the motivation of the heart MUST be considered. In the "looking at a woman to desire her," the man's motivation is his own, selfish sexual pleasure, with no regard for the woman or praise to the Lord for His creation. When the motivation is wrong, it be safely assumed that committing a questionable action will also be wrong.
Returning to Jeremiah, then, not only is Jeremiah's life & ministry a higher value and more important than the curiosity of the court officials (who have NO right or business to know the answer to the question posed to Jeremiah, far less even act upon the curiosity and ask him), but Jeremiah's answer was not for a wrong motivation. First, he was obeying his king! Second, he was looking to continue his (life endangering) ministry. Third, he was hoping to preserve human life (his own). Each of these are good and noble motivations.
Finally, when we look at the results of the possible answers, The only ones who would "gain" from "the truth" are those trying to do wrong! We have no obligation to intentionally prosper the wicked. By obeying the king, the court officials lost nothing; it caused them no harm. Furthermore, Jeremiah would be able to continue to minister (and live). Those are good.
In summary, we have three independent sets of evaluation each fully supporting Jeremiah's actions. Did he mislead them? Yes. Was it WRONG? NO. To the contrary, submitting to the men out due to being afraid of not adhering to a principle (rather than the principle Giver) is living by faith in the Lord, nor truly loving Him or His People. It's living afraid - of people and their self-made standards.