Sunburnt!

Is it bad to be exposed to sun in pregnancy? How about sunburns?