Remember that this is the firing order, which indicates the sequence in which the spark plugs ignite. The physical location of the spark plug wires on the distributor cap will correspond to this order, but it's crucial to double-check your distributor cap to ensure you are correctly matching the wire to the correct terminal. The numbers on the distributor cap usually correspond to the cylinder numbers. A diagram on the cap itself or in your owner's manual should clarify this.
Incorrectly attaching the spark plug wires can lead to misfires and engine damage. If you are unsure, consult a repair manual specific to your vehicle.