Expression pedal

Hey, I know you can use Hapax with sustain pedals/switches, but can you also use an expression pedal to record modulation? Or would you need a midi pedal?