Does iMessage need wifi
No - iMessage works over any viable network connection.

Assuming you are on an iPod touch, since WiFi is your only viable network, then it follows you need WiFi, but it's not a limitation of iMessage as much as it is of your hardware. iMessage works fine over ethernet, cellular data equally as well as WiFi.