True, it’s just an example to always look at the output. I’ve definitely used that in Fedora to reinstall packages when something stopped working after an upgrade.
(Maybe this doesn’t happen by itself in Debian but I wouldn’t trust Ubuntu for example)
When learning a programming language I think it’s better to find the commands you’d use to compile/run the program and run them in the terminal the first few times so you know what’s actually happening behind the run button. Then start running things through the IDE if it’s more convenient. If you tell us the language we can help with the commands (is it C?)