Sunbathing during pregnancy is possible, but you should take some precautions.
Beach, swimming pool, fine sand... Pregnant, even doing absolutely nothing is allowed! You have a vitamin D deficiency and it is important to let the sun's rays caress you. But respect a few rules to avoid the pregnancy mask and the linea nigra on your belly, due to the increase of hormonal secretions.
Don't worry, the baby is cool in the amniotic fluid and UV rays are not dangerous for him.