Not sure if it's different on Mac or Linux but on windows you can:
open the discord app and go into your user settings (bottom right the little gear icon) Select "Windows Settings" and under "System Startup Behavior" the first option should be "Open Discord" if it is currently to the right click on it to turn it off and discord should no longer open on startup. Good luck!

-P