Yes. There are Scintilla commands to set this.
https://www.scintilla.org/ScintillaDoc.html#ScrollingAndAutomaticScrolling
This one is needed:
SCI_SETYCARETPOLICY(int caretPolicy, int caretSlop)Though I am not sure how to make it auto-run in NPP directly.
I only know how to do it using the PythonScript plugin.
https://github.com/bruderstein/PythonScript
If you have it installed, then open “startup.py” script and put these lines
somewhere in the bottom:
Also set “Initialization: ATSTARTUP” in the plugin Configurarion menu.
This will set scroll offset to 5 lines (so change 5 in the second line to something else if needed).