No you don't, you need special nodes to trick it into making vaguely-correct looking shadows that render much faster than the actual correct shadows...
Split out the generated.Z channel with the Seperate XYZ node, then use a math node set to "greater than" with the second value set to "0", this will...