Yes, the iPhone is the same. You get a ‘Trust this computer?’ prompt which forces you to unlock the phone first.
The trouble is, this is still a data path that has been opened via USB. This new change disables the data path altogether and just allows charging via the USB power pins only - like its a USB battery or USB fan, simply power and nothing else. Which is pretty neat.