It is possible to know in advance what your karma is. It is not possible to cancel the negative karma with the positive karma.