Nope.
If Jefferson had not had Congress's permission, he would have been very embarrassed in 1805 when he had to get Congress to appropriate $60,000 to pay to the Pasha as part of the peace treaty.
“act for the Protection of Commerce and seamen of the United States against the Tripolitan cruisers” Passed February 6, 1802
The schooner USS Enterprise defeated the 14-gun Tripolitan corsair Tripoli after a fierce but one-sided battle on August 1, 1801.
Perhaps you can tell this ignorant soul which happend first?
Thanks.