Sun baking when pregnant?

Shan
My husband and I are leaving on our baby moon in 4 weeks, I'll be 30 weeks. 6 days in a gorgeous resort on the beach and beautiful pool . My family keep telling me I should stay out of the sun? Is that correct? Obviously wouldn't sit in the sun for hours and wouldn't let myself over heat... What's your opinions?