Exactly, trade tends to build trust and good relations (or at least respectful relations) so it's a good Net-Net thing. However, if in stressful times like war the government can pretty easily enact tariffs and even dictates that all domestic production stays here. That is of course for only emergency conditions.