# If the characters avoid the encounter through diplomacy, are they awarded the XP for the monsters? [duplicate]

Let's say that a part of the dungeon with X monsters can be either passed through combat OR through careful diplomacy, can the players be awarded XP points the same way if they choose the latter? It seems like it's a cool way to reward role playing instead of just fighting - and the players can save spell slots/per-rest abilities at the cost of the loot. Is that something that D&D supports?