Will air bag work if engine is off?

It depends on your car and model if the air bags will deploy if the car's engine is off but the air bags are still activated as long as it is still connected to the battery.