If you take hybridization into account then:
Carbon atom has configuration: 1s2, 2sp1, 2sp1, 2py1, 2pz1
While oxygen atom has: 1s2, 2s2, 2sp2, 2sp2, 2py1 2pz1.
But carbon 1s2 and oxygen 1s2 atomic orbitals don't form any molecular orbitals.
Carbon and oxygen 2py 2pz are overlaping and form two π orbitals (bonding orbitals).
Four sp hybrids overlaps and gives four molecular orbitals - sσ, pσ, sσ* and sσ*, but the last one is empty due to lack of electrons.
Four of six electrons on this orbitals comes from oxygen, so one bond is coordination bond from oxygen to carbon, and bond order equals 3, similiar to N2.