yes I would think your oil pressure alarm switch is bad. You can check it for continuity. It should have continuity to a good engine ground when engine is off and open when running and you have oil pressure
When these go off its too late anyways you should watch your oil pressure and temp...