Tanning bed while pregnant??

I've always heard you're not supposed to tan while pregnant but why? Other than the effects it can have on your body while you're not pregnant. Does it affect the baby? Has anyone been tanning?