Yes, you can use the 'Undo' function in Excel (either by clicking the 'Undo' button on the Quick Access Toolbar or by pressing Ctrl+Z) to restore the cells you just removed.