Spam filter based on smart contract

Guys it is possible to build smart contract on waves that burns all tokens, except tokens that will be whitelisted using ID? For example I whant to burn all tokens from airdrop except: WAVES, WCT, MRT, WAVESGO, wBTC etc… Can I do it using Non Turing smart contract??