Hooked up new programmable timer, but concerned about red wire
The switch you installed can be wired for either single pole or 3-way configurations. The red wire is a traveller for the 3-way setup. It is not used in the single pole setup. Capping it is right.