Automatic Sugar cane farm timing
The piston-arm over the sugarcane resets the amount of time it needs to grow, so the answer is yes, it does affect the amount of sugar canes, i recommend you to put a bud switch, its very easy to do and its very efficient.
You can also put a timer with a lot of time, so you are sure that the sugar cane will be growth when its harvested.