yes, but it's not really simple, and it's not foolproof either.

What you need to do is look at the nick of the client that joined the channel, then see if there's a commonality (eg: all consonants or all vowels), then if there is, kick them from the channel

For the joining and kicking, check the help file under ON JOIN and /kick

For the nick recognition, I suspect this would be easier done with regex, so I'm going to pass that on to one of the excellent regex helpers here.