The problem: Under Martian gravity, the soil can hold more water than on Earth, and water and nutrients within the soil would drain away more slowly. Some conditions would make it difficult for plants to grow on Mars. For example, Mars's extremely cold temperatures make life difficult to sustain.
Scientists have conducted plant experiments simulating Martian conditions using volcanic soil in Hawaii, which is known for its similarity to Martian soil. These experiments found that plants can actually grow in these soils.
There are other aspects future Mars explorers will need to consider when growing plants on that planet. As mentioned earlier, Mars’s atmosphere is mostly carbon dioxide, and plants need this gas just as much as we need oxygen to breathe.
Some conditions would make it difficult for plants to grow on Mars. For example, Mars's extreme cold temperatures make life difficult to sustain. Sunlight and heat reaching that planet is much less than what the Earth gets. This is because Mars is about 50 million miles farther away from the sun.
I don't know a solution for this, but I'm guessing if the planet was much closer to the sun there could possibly be life on mars and could grow plants.