Can a sunburn hurt my baby?

Little back story, I'm currently 32 weeks pregnant. I'm very very pale like glow in the dark pale and as its been getting hotter ive been wearing less clothing, I wore a tank top today which i never ever do and yes I put on sunscreen. I was never really in the sun for more than 5 minutes at a time but i still ended up with a sunburn on my back. I was wondering if this could hurt the baby or not and if it could what should I do?