Wall sits are great for building isometric strength and muscle endurance, and can help to build muscle. However, if your goal is to build bigger muscles, wall sits alone are unlikely to be enough, however they make a great accessory exercise to help with your efforts.
To build muscle, focus on working the legs twice a week, with a mix of compound exercises like squats, isolation exercises like leg curls, and progressively overloading these exercises.