Is there a wrong way to wire a potentiometer?
A potentiometer is just a resistor - current can flow through it in any direction  (including from/to both ends to/from the wiper).

If you are just using it as a single variable resistor, rather than as a voltage divider, it is common practice to connect the wiper to the "unused" end of the element - this ensures that there is still a resistor in the circuit if the wiper connection becomes intermittent.