As a side quest or an optional part of the main questsure, why not?
But I'd hate it if such a quest would be a mandatory part of the main quest, since I virtually always play characters who would be extremely out of place there.
That's fine. For my sake it can be part of a divided quest line:
Option A: Infiltrate the "Magistrate I just created" office building/compound
Option B: Attend the party he is holding and see if you can figure out what you need to
So you can deal with that need of information in two different ways.