There is nothing wrong with having a fling if you are not in any serious relationship, I did it a few times just to have fun and believe it was so damn fun back then.
But once you are into a serious relationship, having a fling should be the very last wish on your list not to talk more of carrying it out. Having a fling when you are into a relationship is cheating.