When their are blisters or real red and inflamed looking you should seek a doctor's opinion. Sunburn is like a fire burn. It can damage the skin underneath and scar real bad.
Medical attention is needed when you have gotten second degree(blistering) burns. It's needed because of the pain plus you are at risk for sun poison. Use soothing sunburn spray.