The ocect rule deals with Lewis dot structures. Once you have drawn a correct Lewis dot structure, the central atom should have 8 electrons around it including the bonds with the other atoms.
It is a rule which states that atoms combine so that they have 8 electrons in their valence (outermost) shell so that they attain the configuration of a noble gas