I don't see why not. I'm assuming you're either talking about a sales credit note or a purchase credit note. In either case, you can perform the Apply documents action in the customer ledger entry/vendor ledger entry window, and select what do you want to apply it to.