Does undo automation work?

Hello guys,
Someone must be able to tell me if Undo works with automation!!!