It can get poisoned but won't take any damage (EDIT: Also no damage from burns).
Besides giving Pokémon with Magic Guard a life orb (also no damage loss but powered-up attacks) giving them a toxic orb is a nice strategy to prevent all other primary status ailments (burn, paralyze, sleep)