Your credit score may go down if you close a credit card account. The reason your score drops would be due to the loss of the credit limit of the closed card in your debt-to-credit limit ratio measurements.
If you carry a balance on other credit cards, then your debt-to-limit ratio, calculated by dividing your aggregate credit card debt by your aggregate credit limits on open credit cards, will likely go up. This may cause your credit score to drop.
If you don’t carry a balance on other credit cards or the credit limit on the newly closed card was modest enough, then the account closure may not result in a change in your debt-to-limit ratio sufficient to result in a score reduction.