Yes, and cannons were a popular weapon for both sides to use during the conflict. Exploding balls created a considerable amount of damage to the opposing side.
The exploding cannonball, the invention is credited to a British officer named Henry Shrapnel, was fully developed by 1804. It's quite possible they were used in the Civil War.