Yes, it is possible to store certain buildings in your inventory by using a special item called the Store Building Item.
How does it work?
Open your Inventory and select the Store Building Item, then click Use.
A box icon will appear above every eligible building in your city. Click on the building you want to store. A confirmation window will show what you will lose (such as population or happiness).
Confirm to complete the process. If you selected the wrong building, click Cancel in the confirmation window. If you want to stop the storing process completely, click the red Cancel button below the Forge Point bar.
⚠️ Each building you want to store requires one Store Building Item.
How can I get the Store Building Item?
You can obtain Store Building Items from various occasions in-game, such as: