Question: can an atom have a different number of protons and electrons?
Answer: Yes. Each element has a specific number of protons that make up it's identity. However, electron count and configuration can change to make bonds, in elemental form, etc. The main reason atoms change the number of electrons in the valence shell is to reach the octet or react with other atoms.