You're thinking of the Marquis de Lafayette, who served admirably in the Revolutionary War. Jean Lafitte was indeed a pirate, and no relation.