On the contrary, you may gain xp from objectives in D&D, no matter how many creatures you killed or not. There are many campaigns and GMs that use milestones for XP gain.


And even if you use xp per kill, you receive xp for quest competition and stuff like that.