No it is not necessary. There are YM Neighbornets which are the official youth groups of their local masajid but this is not a requirement to join. Meetings do not even have to necessarily take place in a Masjid. Whatever location best suits the growth and development of the Neighbornet should be chosen.