Just to add, I have a keyless car and the steering lock is engaged when the car has been switched off, in park and the door has been opened.
But I wonder what would happen if I was travelling and I just pressed the start/stop button, if the car would actually switch off.