Yes, both sides drafted soldiers
Both the Confederacy and the Union drafted men into their armies. The Confederacy went first. Its Conscription Act, passed on April 16, 1862, made white men from 18 to 35 years old liable for three years of military service. Later laws widened the age limits in 1862 and again in 1864.
The Union followed with the Enrollment Act of March 3, 1863. It made men roughly 20 to 45 years old liable for service. The federal government ran the Union draft, but most Union soldiers had enlisted as volunteers.
The Confederate draft
The Confederate law is often described as the first national draft in North America. It was designed to fill regiments that volunteering could no longer supply. Men drafted under it served for a set period, and the government later extended the terms and age ranges as the war went on.
Confederate law allowed substitutes for a time, but the government later ended that option. Exemptions covered many government and industrial workers, and some planters and overseers. The most controversial rule was the October 1862 exemption for one white man on plantations with 20 or more enslaved people. Many poorer Southerners resented it.
How the Union draft worked
The Enrollment Act divided the country into districts. Each district had officials who made lists of eligible men. Once the lists were complete, names were drawn in public drawings. A drawn man had to report for a physical examination. If he passed and no exemption applied, he was ordered into service.
Drawings began in the summer of 1863. Many men were excused for reasons such as physical disability, being the sole support of a family, or holding certain government positions. Officials also dealt with men who claimed exemptions on religious grounds, and the treatment varied.
Substitutes and the $300 fee
A drafted man had two main legal ways out. He could hire a substitute, a replacement who would serve in his place. Or he could pay a commutation fee of $300 to the government. The fee was set to keep substitute prices from rising too high.
Substitute brokers arranged replacements for a fee, and the prices they charged varied. Many drafted men used one of these options, and some well-off men did so openly, which is part of why people still ask who famously dodged the draft. Because both options were legal, avoiding service this way was different from desertion or hiding from the draft.
How much the draft supplied
The draft did not supply most of the Union army. Most Union soldiers were volunteers, many of whom enlisted for enlistment bounties offered by federal, state, and local governments. The draft pushed local officials to recruit faster and offer bigger bounties, but substitutes and commutation meant that many drafted men never served.
Sources disagree on the exact numbers of men drafted and the men who actually reported for duty. Treat any single figure with caution, and look for the source that explains how its numbers were counted.
The short answer
Yes. The Confederacy began conscription in 1862, and the Union followed in 1863. Both drafts had age limits, exemptions, and ways out, and both were unpopular with many of the men they covered.