Sunbathing while pregnant

Jessica
So I just sent a cute lil pic to all my friends of me and my bump catching some sun, and a few have told me that I'm not allowed to sunbathe bare skin while pregnant?? I've never heard this, is it true?