If the points have already been transferred to your frequent flyer account, you won't lose them by closing your credit card account. But it can sometimes take a few weeks for the frequent flyer points to appear in your account, so make sure they have been added before you cancel your card.