Now...your Gen 2's will not fit in the Gen 4. Gen 4's are different, and will only take Gen 4 and newer, but the magazines will still fit in the Gen 1-3.
The Gen2 magazines will work just fine as long as the Gen4 pistol's magazine release in on the left side (right handed).