All of your miles or points are accessible through your account with the brand. For example, if you have the Delta SkyMiles card and you cancel it, all of your miles will still be available through your online account and you'll be able to access them until you use them.