without going into which sequence is better or worst. The rule is such
guitar out to input of pedal, from output of pedal, to input of pedal and output to amp etc
As long the "in" goes to "out" and "out" goes to "in", nothing will go wrong.
Even if in goes to in or out goes to out. Also nothing will go wrong except there wont be any sound at all.