It is said by this popsci article that both lunar and martian soil are viable planting mediums. The test shows that martian soil is much better than lunar soil. The journal's report backs that up. Popsci does not give final conclusion: it is possible, they say, but many questions remain. The soil seems to dry-out quickly, they add. On the other hand, you must remember that eons of meteor bombardment makes ultra-fine dust. You must remove the dust, or your planter will turn the soil into a concrete block. (Don't know how coarse was their tested soil, if it dried so quickly). The soil may be processed to remove fine dust. As it was never exposed to water, you may see how it reacts with it. Once a reaction (if any) takes place, the chemical reactivity is neutralized. You may start adding nutrients and beneficial microorganisms and start planting.
Nasa's article states that the 4 elements necessary for growth are not available in the soil, with oxygen being bound. They are naturally absorbed through water and the atmosphere: carbon, oxygen, hydrogen and nitrogen. All other elements may be present in the soil.
Bbc article shows that marigolds can thrive on the minerals. So yes, that is possible. Don't forget that under lab conditions on earth they receive the 4 elements C, O, H, N from air, water and co2, so that the minerals in the soil make-up for what's missing. This allows us to extract water from polar ice, provide humans and poultry as a source of CO2 and maybe all what we need to bring to the moon is some nitrogen fertilizer to start the nitrogen cycle. With an adequate supply of minerals you can maintain a cycle.
DISCLAIMER: Part of my experience comes from a failed attempt to plant in a soil patch which was stripped or unpaved. The area was under concrete for many years and too inert for any planting. It took some time until plants began taking a roothold. This shows the importance of introducing oxygen and essential organisms into a soil which has always been sterile.
The journal: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0103138