In theory it looks that it can be done, with a lot of work, but honestly it does not make sense to use such a cumbersome instrument.
You will first have to modify the MIDI2LR application to increase the number of profiles that can be assigned to buttons.
Then you will have to create a profile for each function, and configure the buttons in each profile.
IMHO the X-touch Mini is the better tool for the job.