You're not supposed to! Higher risk of infection. Plus, most reputable piercing/tattoo artists will not pierce/tattoo any pregnant woman. Better to wait until you have the baby.
I think they fall under the same category - risk of infection. Most likely, if you go into a shop, they'll let you know that they won't do it while you're pregnant.