Most photography classes require you to bring your own camera. However, if you're interested in exploring photography before investing in your own camera gear, consider taking a class anyway. Whether you take photos with your cellphone or a high-end digital camera, you can benefit from the skills learned in the class.
During the class, you'll learn not just how to take great photos but also about the features you'd like in a more complex camera, as well as the best lenses and filters for the type of photography you're interested in. This knowledge will better prepare you for the expensive purchase.