No. You could do that with redstone repeaters and a circuit but then... you'd kinda need to be there so mobs would actually spawn. Mobs can't spawn more than 132 blocks away from the player, if I remember correctly.
Rollback Post to RevisionRollBack
Watch out for the crabocalypse. Some say the day will never come. But it will.
If you'd like to talk with me about other games, here are a few I play.
Left 4 Dead series
Elder Scrolls series
Team Fortress 2
Dead Rising series
7 Days to Die
Come to think of it, I mainly play fighting-based games.