Question: can a dm be a player?
Answer: No, Dungeon Masters cannot have a player character because they are not a player. The acronym DMPC is a condiction in terms. DMs know the plot, the stats of NPCs and monsters, they have meta-knowledge that the players cannot have. As a result, a DM cannot also be a PC.