Thanks for posting your question in the Microsoft Q&A forum.
You do not need to stop (deallocate) the VM before moving it to another resource group as long as it meets the requirements and has no dependencies preventing the move.
You can find more information in the following links:
https://thecloudwiki.com/?p=862
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **