Can you still ’undo’ on the iPhone in iOS 11?
Yes!

On your iPhone do as follows:


Open Settings
Tap on General > Accessibility
Swipe up until you see the Shake to Undo option
Tap on this and enable it
Exit Settings