My gut tells me yes. But minecraft has some weird logic to it. Even if it does last longer against mobs, it will still take double durability damage. Meaning it will still last half as long as it would if you used it to chop wood. So you're much better off making a sword. Swords also do significantly more damage to mobs.