Not necessarily. Play with the same people can have its advantages, such as the opportunity to learn more about each one's playing styles and develop specific strategies to play against them. In addition, playing with friends or acquaintances can make the game more fun and social.
However, playing with just the same people may limit your experience and not expose you to different playing styles and skill levels. So it's always good to vary and try playing with new people, online or in local tournaments, to improve your skills and expand your network of contacts in the world of poker.