No, but the person who attributed that quote to George Washington is mistaken. It’s also a slight misquote.
It comes from the 1797 Treaty of Tripoli, which was written by Joel Barlow, ratified by the U.S. Senate, and signed by President John Adams (not Washington). The wording is slightly off.