You’re right, you can’t. You need some additional stuff. Plants takes both CO2 from the air but they also need for instance nitrogen from the ground. Now, of course 80% of air is nitrogen but it’s bound up in an extremely stable state that plants can’t really use. It takes too much energy to break the bond. If we could find some way to extract nitrogen cheaply from air though, it would be a real game changer.