Is there an "undo" feature?

In gmod, you could undo your actions like spawning a block by pressing Z. Is this feature also available in s&box?

Some Sandbox derived gamemodes yes. There are some of them that have quite advanced features you know.