You can join a group multiple times, if that's what you mean. Your description isn't clear. But I don't see what's so hard about knowing which groups are new and which are already current.
The Membership Query message is for UDP and routers, not for applications.