Battling can help you gain experience, but progression may also depend on quests and other systems. Check the current game mechanics for the most efficient route.