If you're a GM who loves this about D&D, good for you, have fun.
If you're a GM who quietly despairs because you want your games to feel serious and meaningful, but your players always turn them into jokes, I want to assure you that there are ways to solve this, but it's gonna involve making some changes to how you GM.
I've run games that have literally made players cry. If you take the time to herd the cats properly, you can get there (If people want specifics I'll elaborate, but I don't want to turn this into a soapbox unprompted).