oil pump is driven off the crankshaft, so if crank is turning the pump should pump oil as long as the pump has oil to pump.
the alarm system has no idea if the motor is pumping oil , just knows what the tank oil level is.
That is what sets the alarm.
keep the oil system clean and it works...