Changing the "Pan View" Keybind works in Object Mode, Not Sculpt Mode
Yes,it can be done. But probably what prevents you to do so is: there's already another "shortcut" using the same combination in Sculpt, by default.

if you search for "sculpt" in preferences, you'll see that there are three different mouse/keyboard combinations to do the "sculpt" action, including this:



you can remove it by clicking on the "x" icon right of it, getting this:



then, if you set you desired "pan" shortcut in the "sculpt" editor section from the default:



to:



you should be able to "pan" the sculpt view with your preferred combination, like I was able to do here:



By the way, remember to save your preferences to keep this configuration or it would reset at next start. You can also reset to factory settings in the same menu.