TheComplementing the counterexample in Vladimir S Matveev's answer, the recent preprint Determining Generic Point Configurations From Unlabeled Path or Loop Lengths by Gkioulekas, Gortler, Theran, and Zickler, treatsfinds a generalization of this questionpositive answer under certain circumstances to highera generalized question.
First, they treat all dimensions $d\geq2$, and to the situation wheresecond, the list of distances provided may(the "measurement set") does not necessarily correspond to the lengthsdistances between pairs of single edgespoints, but may also be the lengths of arbitrary paths and loops on the complete graph on the point set.
The main result roughly states that provided: (1) the measurements come from a generic point set (thus ruling out examples like the one in Vladimir S Matveev's answer) and (2) the list of measurements "allows for trilateration" (meaning that there are enough measurements to inductively construct full-dimensional simplices), there is a unique point configuration (up to congruence) consistent with the measurements.