Tiny Epic Quest

If I'm attacking with a Bow while one Map Card away from the Goblin, can I use the Sword to attack this Goblin?

A Hero must be at a Goblin Portal to use the Sword. Note: if also equipped with a Bow and attacking from one Map Card away, the Sword ability does not apply.