Yes the command should work for you, the test result show below:
Referring to the official document to get more detailed information:
How to use PowerShell to upgrade several distribution lists at the same time
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.