You're free to fight or flee as you wish. If you engage the goblins, they're no match for your heroes.