Porsche 911 1984 starting problem


My porsche 911 will sporadically not start at times. I turn the key and the indicator lights will come on but the starter will not turn over. If I take the key out and put it back in it after this it will then start right up. Then sometimes it starts on the first try with out a problem. Is this a problem with the electronics in the ignition switch?