I'm not sure. On one side, having trade relationships would maybe also contribute to peace between the countries who take part in these agreements. On the other side you have countries that might try and conquer instead of building relationships. There are so many edge cases to this question it's hard to think of a answer that feels right. I am also no expert on the matter.
One thing to note though, is that wars are not always grenades and guns, sometimes having more money is enough to get unfair advantages on other countries. It's a big topic.