In a sense, yes. If you're nice to someone, odds are, they're going to be nice back but if you're an ass, then you're going to be treated like one.
However, if you do something good for someone else, don't expect the universe just to suddenly shine upon you.
In the sense of people being nice to others in return for being nice, then yes, that's Karma but simply getting punished for doing something you probably shouldn't have by fate alone, no. This universe doesn't give a fuck if you cheated on a test or if you killed someone.