Definitely not. First of all, solar and wind energy are for use in the home, business, health, education, etc. But they are also necessary during the electrolysis process so that the hydrogen obtained is 100% sustainable.
Second, hydrogen is used to supply electricity to heavy industries such as steel industry, maritime and air transport, which operate with high energy consumption. In short, green hydrogen does not compete with solar or wind energy, but with oil, natural gas and coal. For all this, the three sources of energy will play a crucial role in the decarbonization of the planet.