They're separate games and shouldn't interfere with each other.
That said, Sims 3 uses a lot more memory, and on high settings, will need a better graphics card than Sims 4, even though it's an older game. Especially if you have multiple expansion packs.