Inductive proximity sensors

Can you have the wire go through the loop of a coil?