To be frank, the vast majority of people executed in the Great Purges were completely innocent of the charges leveled against them And those who were "guilty" of being "anti-Soviet" were political criminals or of the wrong social class (ex. former "kulaks" - somewhat well-off peasants), not actual criminals. That distinction is important to make when answering your question.
To answer your question: yes there were quotas. The effect, however, was a bit different than what you imagined. Rather than throwing known innocents into jail to meet quotas, NKVD troikas and the gulag system used quotas as a baseline and then heavily exceeded these quotas as a way to demonstrate zeal to their political superiors
The most notable example of this in action is the NKVD Order 00447 of July 30th, 1937. In this order Stalin and NKVD chief Nikolai Yezhov demanded "the direct physical liquidation of the entire counter-revolution."
Order 0047 demanded 79,500 executions and that a further 193,000 people be given 8-10 year gulag sentences. These quotas were euphemistically referred to as "limits," although they were obviously meant to be floors, not ceilings.
With the order given, it was up to local and regional NKVD offices to decide who would get these punishments. NKVD officers were under intense pressure to meet and exceed their "limits." As a result, quotas were wildly exceeded.
The NKVD quintupled its excution targets. By late 1938, a total of 386,798 people had been rounded up, given a show trial, and shot. Cases were handled with blistering speed. Three-man NKVD troikas would pass judgement on sixty or more cases an hour. In one night, the Leningrad troika gsve 658 people death sentences. There was seldom any delay between sentence and execution - many people were killed just hours after their show trial.
In the Ukrainian town of Vinntysa alone, the NKVD killed nearly 10,000 people between 1937 and 1938, enough to fill 87 separate mass graves.
The same bloody zeal applied in the gulags as well. The gulag system was meant to execute 10,000 people. It ended up shooting 30,178.
Timothy Snyder's Bloodlands: Europe Between Hitler and Stalin discusses Order 00447 and other aspects of the Great Purge very vividly. If you're interested in learning more about the Great Purges and other Soviet (and Nazi) atrocities, I heartily recommend it.