Well of course. Plastics are syntasized from hydrocarbons and given sufficient electric power you can turn atmospheric CO2 and water into hydrocarbons. We've known how to do this with simple methane for over a hundred years and we have pilot plants for more complex hydrocarbons. The problem is where that electric energy comes from.
Here's hoping for continued progress in reducing the cost of solar panels, etc.