This is absolutely right. The Bhagavad Gita gives a very beautiful example of Karma (action) and its fruits.
There are two concepts: Karma and Akarma. When we perform our actions without any desire or attachment to the fruits of those actions, it is called Akarma.