Depends how you configure the bleed panel for take off.
If you leave the engine bleed PB in, the APU running, and APU bleed on, then when the APU fails, the APU bleed valve will close and the engine bleeds will open.
But if you switch off the engine bleeds (PB out) then the engine bleed valves will stay closed until you select them on.