I think so (never done it myself but I'm sure it's possible I just don't know how). Probably best to check the wiki https://minecraft.gamepedia.com/Commands besides here (forums) for an answer. I don't think you need mods or something like other commands (thinking fill command or something else to do it).
Rollback Post to RevisionRollBack
Power API, Rift/Fabric/Forge 1.13 to 1.16 Forum Thread Maintainer, Niche Community Content Finder, Youtuber, Modpack/Map Maker, Duck