Yeah, exactly. For example, programming games is very different from programming websites. In games you need to push the hardware to it's limits and have as much freedom as possible to create best game ever, so a lot of code optimizations are made. Since games are one-off product, the code doesn't need to be maintainable, meaning that once it's done - it's done and no updates are made.
Websites, as an example of software that are meant to be extensible, easily modifiable, must be also programmed so. One must also keep readability in mind, as other people might be involved and must understand your code too.
.. I hope it's not too much complicated words^^;