Were all 6 wires hooked up to start with? If it's AC, probably not. If it's a heat pump, probably so. Before disconnecting the wires, you should have labeled the connections. The colors aren't important, the wires should have hooked back to the same letters on the new thermostat. If you didn't label them, you will need a schematic.