You can apply a truce when armies are marching, it just won't stop them from hitting. It will only stop new armies that haven't hit yet.