Newbie Beekeeper Catches A Swarm of Bees.

How does a newbie beekeeper catch a swarm of bees? I've only had my bees for two months but one of my colonies swarmed so I had to do the best I could to catch the swarm and re-home them. Did I succeed?