No, defense skill applies only to melee. Most pikes have defense 1 anyway so it hardly matters.

Vanilla pikes are hampered by what seems to be a disabled armor system and a tendency to switch to swords immediately after the first contact. Their spear wall also doesn't stop charges. Guard mode sometimes helps them maintain formation, but then they don't attack (same problem with any unit in guard mode).