Carbon dioxide is made by the combination of carbon and dioxide.
For the formation of carbon dioxide the reaction that takes place is as follows:
C + O2 ------> CO2
Here the valency of carbon is 4 and that of oxygen is 2.
A double bond is formed between an atom of carbon and two atoms of oxygen as shown in the image and this results in the formation of carbon dioxide, CO2.
Electrons are only located in specific shells or orbitals that surround the nucleus of an atom. Therefore, I believe that your answer would be true. Hope it helped some!