Not exactly. Tourists are one thing, but US military personnel stationed in foreign countries typically operate under a status of forces agreement which limits the ways in which they are subject to the host country's laws.
People forget, that a war crime is simply a crime that (state) combatants dont have immunity for in war. The geneva convention gives immunity for everything that is not a war crime.