Sun good or bad

25 pregnant and iv being sat in the sun with sun cream on moved my self to the shade after about a hour iv read on google it not good for pregnant people do you think I be ok or should I make a oppitment with the midwife