That's the only way 'what's coming to you' can be interpreted.
Fair enough, to my limited understanding of the English language, it could be anything from getting verbal abuse back, a shrug and a laughter, getting a good trashing by his/her entire family, or getting your house set on fire - depending upon the personality and mental health of person B.