Sunburn swelling and pregnant

I got a really bad sunburn on my legs that it has made my legs to be very swollen and painful when I get on my feet to walk and I am 6 weeks pregnant. Is there anything I can do for the swelling? Should I be worried?