The addition is treated as any other operation in your model, so Autograd will calculate the gradients based on the derivative of the loss accumulation.
If the outputs are independent, your assumption is correct.