Somewhat. The idea is to not put any expensive fn,lib, object creation etc. But you shouldn't spend too much time on it. Just keep it in mind while writing code.
Premature Optimisation simply increases the time taken to complete a project, and gain isn't that much.
Benchmark the project after you have completed your functionality, and figure out the most expensive part, and then optimise it.