-
Technically no. Even though the hammer would go up and down, it would still be attached to the floor of the elevator. Same thing if it is on top of the elevator.
-
According to lore no it wouldn't be able to. But irl obviously yes because nothing that small is that sense that we can see or make into hammers