Capturing CO2 and converting CO2 to fuel requires putting the energy back into the molecules somehow. That requires a ton of energy. So either way don't we need to solve electrification?
So solar or wind energy is a prerequisite for CO2 capture, followed by the separation from air by physical or chemical means, followed by the reduction to hydrocarbons, either by direct electrolysis or by using hydrogen obtained by water electrolysis.