The halogen group can occur on almost any carbon atom in an organic compound.
For example, it could be on carbon 1 in propane
or on carbon 2.
It can be on a double-bonded carbon, as in 1-chloropropene
It could be in any carbon in an aromatic ring
And it can even be attached to a carbonyl carbon.