No, credit will not be earned if you cancel your booking. If you chose to donate your credit to charity, this will not be donated if you cancel your booking.