If you mean the ice cream was dipped in coffee, I don't see anything wrong with the dialogue. Although, B might sound more natural (to me at least) if it were...

Yes, I put it in coffee.
Yes, I...