It does not prevent it, it makes it more difficult. There is still communication between processes which could be exploitable. That being said, it certainly helps.
In theory, the sandbox should prevent it. In practice, of course, this is not the case.