Headlight short

My headlights do function properly, but after 30 seconds of being on the switch itself gets hot and wisps of smoke come out of the dash. Could my switch itself be shorted even if it functions properly?
Thanks as always