You are correct! Both of the oxygen atoms will have an inert gas configuration with a total of 8 electrons and the carbon atom will also have a total of 8 electrons for an inert gas configuration. The double bonds allow all of the atoms to obey the "octet rule".