Brachylog, 55 4 bytes
ḅ.&≡ᵍ≡ᵍc? -1 thanks to DLosc
Takes input as a list of digits (ḅ currently can't handle numbers) through the input variable, and succeeds or fails as output.
. ≡ᵍ The output variable is ḅ a list of the runs of consecutive equal digits in the input, &with identical elements grouped in order andof thefirst inputappearance c ≡ᵍ with its elements grouped notthe respectinggroups consecutivenessconcatenated ? is also the output variableinput.