War crimes question?

If one side violates the Genevia Convention & rules of engagement is there a provision that would allow the other side to also violate these rules and not be charged with war crimes (since it was in response to the other side doing it first)?