If you are using Arduino Yun to build your IoT application(s), yes!
Arduino Yun contains two processors, one of these processors runs OpenWRT linux distribution. You can simply port kafka to this OS and run kafka client to push data to apache kafka server.
I've done it myself. To do this, you simply have to access the Yun's root by doing ssh from the terminal.
$ opkg install update
Download the kafka library written in Python (OpenWRT has Python already installed).
Run Python kafka script inside your OS as client. Make sure you have your Yun connected to the network. Poof! It is working now.
Hope this will help.
To know more about Kafka, get your Apache Kafka certification course today.