It'll still take damage from Poisoning.
One example is Soak. When a Pokemon that should be immune to Poisoning is Soaked, it can be poisoned, e.g. Magezone. It will then take damage from poisoning, and even after switching out (where its type will revert back to Electric/ Steel), it will still be poisoned, and continue to take damage from its poisoned status.