To clarify - Agility is the Pierce Armour defense. So arrows do less damage to your troops. So if you want your troops to be better vs enemy archers you should increase their agility. However - there is no friendly fire from arrows (only from siege weapons)