No, but it's highly recommended. Even though there are still many ways to make music without MIDI keyboards and controllers, they are now seen as essential tools for making modern music because they encourage new ideas and make the process easier.