No, the light depends on ground thru the switch to work.
Grounds can work but have too much resistance. Use a VOM set to volts. Check battery voltage at the battery posts then move the negative probe to the engine block and a frame ground connection. The voltage should read the same minus maybe .1V. If the reading are within that then the grounds are good.