@oscarmezie No. You also need food.
Firstly, there are bodyweight exercises that require too much strength for most people to do, so clearly, those exercises will be capable of building muscle. But what about the majority of people who don’t know that stuff and just want to build muscle without a gym?