Yep. And it won’t be 100% efficient. The energy to capture and store the co2 is likely greater then the energy you get in hydrogen
Even ignoring climate benefits, it's still worth pumping CO2 down the well for financial reasons alone - especially towards the end of the lifespan of classical oil wells.