Fake tan (foam)

Just curious here, they say tanning in the sun should be avoided during pregnancy, so what about self tanning with the foam ones?? Does it go through the skin and harm the baby?