If the bike is euro 4, then no, not easily. You'd have to rewire the lighting circuit.
Euro 3 bikes, there's a jumper connector within the headlight, just unplug that, then pop off the switch knob and remove the peice of plastic that's preventing the switch from moving.