If closing your laptop puts it in standby mode then yes, it won't be running programs anymore. If it just turns off the screen but keeps running (which is not typically the default setting for most laptops) then programs would continue to run.
In your power settings there should be an option "choose what closing the lid does" or something like that, and you can change it to do what you'd like.
Not sure what os you have but on windows you can just right-click your battery icon in the task bar and choose power options from there. Linux has something similar but I don't recall where exactly.
My good person. It may not be 100% open ended but it does allow for commentary, be it settings, battery, etc. And it encourages commentary (which benefits Lemmy’s growth).