Alien826
No religious beliefs
Yes I guess Karma would take your motives etc into account. That Karma is pretty smart and aware for a "law".
You made me think, so I looked it up. here's something from Wikipedia, which bears out my thoughts.
Karma (/ ˈ k ɑːr m ə /; Sanskrit: कर्म, IPA: (); Pali: kamma) in Sanskrit means an action, work, or deed, and its effect or consequences. In Indian religions, the term more specifically refers to a principle of cause and effect, often descriptively called the principle of karma, wherein intent and actions of an individual (cause) influence the future of that individual
It covers intent as well as actions.
The idea is that it is built in to the universe in a similar, but more subtle way, to gravity. In other words our intents and actions have results automatically, not as a decision of some divine power. It helps to remember that it goes with the belief in reincarnation, so if it seems that someone has "got away with" a lot of bad things, he hasn't really.