It completely ruined both Agni and Soma. Soma was kind, cheerful and was willing to help everyone, however, after Agni's death he doesn't want to help anyone and his personality kinda changed.
It definitely didn't help the plot and didn't speed up the arc, it just destroyed them both.
Speaking as a Soma and Agni fan, they definitely didn't deserve this.