Yes, you can be certified to teach by enrolling in and passing online classes. Be sure to check whether the state where you plan to teach allows you to fulfill all of the obligations to become a certified teacher through online classes. Online degree programs also exist, such as an online master’s in teaching program or an online doctorate in education program. Be sure to check with your state’s certification or licensure education board for specific education requirements.