Endurance activities such as running or cycling can help you build muscle in your legs especially if you include activities like sprint training and hill intervals into your program. However, to optimize muscle building, a full-body strength training program is recommended.