It is possible to use the pathfinder tools in Adobe Illustrator to create shapes. Follow along as this tutorial shows you just how to do it with a gear as an example. The key is to use boolean operations on existing simple shapes, to create more complex ones.
Have an iPhone? Check out all 200+ new features coming in iOS 13.