There are several reasons why this would not work.
There is very little atmospheric pressure on Mars - about 1% of Earth’s atmosphere. Plants need some air pressure to eat.
CO2 at high concentrations is poisonous to plants.
The Martian temperatures are very low - In the Martian summer, they are similar to those at Earth’s icy poles. They are below the freezing point of water, and with a Martian year twice as long as Earths, even colder during the long winters when even CO2 freezes and snows on to the surface.