Yes, you can, but in this particular case, "within" is typically used to stress that the unique features of the relationships within one group would have no bearing on those of another, for purposes of this statement. "In" would not carry this stress. In other words, "within" is used advisedly.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.