That's one way to look at it. Another way is that Jefferson, like Lincoln and F.D. Roosevelt after him, had to live in the real world with exterior forces and events constraining what they could do.
I assume you are refering to the expedition against the Barbary pirates, who were preying on American shipping. To say that Jefferson "got us into a war" is a rather shallow analysis, akin to the current crop of simplifiers who think Iraq is all about oil.