No, it definitely was unlocked as the door mirrors were unfolded before I used the fob to open the windows and change the sunroof from venting to fully open. I could confirm it was still unlocked as the door mirrors were still not folded when I watched the roof open and windows drop....
When I went to to silence the alarm I saw the mirrors were now folded. So unlocking the car, that was already unlocked, triggered the 20sec grace to open a door before it 're'locked and set the alarm, which didn't go off until a good 5min later!