No, you don't. Boulder Dash was designed for keyboard play — the arrow keys handle movement, which is all the control the game ever needed.
A joystick will work if you have one configured, but it offers no advantage in a game about carefully nudging rocks and diamonds around a grid. Precision beats speed here.