Yes, you can. Try my recently released try the ELPA package cursor-undo. Just install the package and enable the cursor-undo mode: (cursor-undo 1)
, cursor movements and some cursor-to-window relative position arewill be recorded. With standard Emacs undo
command (C-_, C-/ or C-x u) you can go back to your previous cursor position. More descriptions are in the package web page or more clearly in the EmacsWiki. Hope it suits your needs.