Yes, it’s quite possible and can actually be very fun. The ideal situation is for a small group of people to play with a story teller (DM) and players, but you can play D&D alone, with just a buddy or a few people without a DM or with a full group. There are even modules and apps that are dedicated to this pursuit.
particularly, Can you solo D&D?
Dungeons & Dragons 5E can be played solo with a number of fan-made rulesets – including one that puts you in the shoes of vampire lord Strahd!
thus,
in effect
Discussion about this post