Sort of. Demigod is "inspired by" DotA, but they are quite different in how they feel and play.
But yes, DotA is the Warcraft 3 mod. Instead of controlling a bunch of units you control aa single hero that you level up. Eventually you go trash the enemy base. Thats the basics.