You can delete a row (a column respectively) in the sense that the contents are disposed and the contents formerly contained in the sheet below (right of) the delete row (column) get one row higher (one column to the left). (In addition a new row at the bottom -R1048576- (a new column AMJ) is inserted.)
This is equivalent with selecting all the complete rows below (columns to the right) and moving them up by one row (left by one column).
You can not delete a row in the sense that the row number hence not is present, and the sheet has a total of one less rows. The logical size of a sheet is unchangeable and so is the sequential numeration of rows and columns.
This does not depend on whether the operations are ordered via the user interface or by user code (“macro”).
I didn’t clearly understand the question, but the OQ may be afflicted by a frequent misunderstanding concerning the recording of macros. The recorder is not an “interaction logger”. If you change the selection while recording a macro, the new selection is recorded and saved as a constant (“name”).