Only within the rules above: being stopped at lights or in a traffic jam is still driving. The rules end when you are parked out of the line of traffic, for example in a parking space or pulled over to the kerb. Then every driver, including learners and P platers, can use the phone for anything, and the engine does not have to be off.
Two uses are allowed for everyone, even on L or P plates: showing your digital driver licence when police ask, and using a phone wallet to pay or show a voucher while stopped in a car park, driveway or drive-through.