Is CPF compulsory for 13 (thirteenth) month salary?

Yes. It’s mandatory to contribute CPF for thirteenth month’s salary or bonus.