Yes, that’s intended. Hitting mobs with it repairs it, so as long as you sheath it when you’re not using it, you’ll never need to repair it.