Speedo cable replacement?

Mine is currently set at 26 - 32. With that I assume I can use the the 26, 27 or 32 tooth pinion.