Decode JPG
The JPEG file is decoded into pixel values that can be displayed or edited.
No. It can stop you from adding another round of JPEG loss, but it cannot reconstruct detail the JPG already discarded.

“PNG is higher quality, so converting my JPG to PNG makes the picture better.”
JPEG is a lossy format. Once a photo has been encoded and detail has been discarded, a later PNG conversion only stores the decoded result of that JPG. The new PNG can preserve that result losslessly from that point forward, but the earlier loss stays visible.
The JPEG file is decoded into pixel values that can be displayed or edited.
No hidden original is recovered. The decoded image is the starting point.
Those pixels are written using PNG's lossless compression.

If a JPG already shows blockiness, ringing around text, smeared hair, or softened fine texture, converting it to PNG freezes those visible pixels into a lossless file. That can be useful if you plan to edit the image again and want to avoid another lossy JPEG save—but it is not restoration.
A normal JPG has no alpha channel. Saving it as PNG gives you a format capable of transparent pixels, but the converter cannot automatically know which ordinary background pixels should become transparent. That requires a background-removal or masking step.
PNG supports alpha. Your image still needs actual transparent pixel data.

You need to make repeated edits and want future saves to avoid additional JPEG generation loss.
A platform, application or workflow specifically requires PNG input.
You plan to remove a background or create alpha after conversion.
The current image will be edited into a screenshot, diagram or graphic where lossless output is useful.
Place the original JPG beside the converted PNG. Inspect lettering, hair, diagonal edges, gradients, and previously compressed areas. If a block or halo appears in the JPG, the PNG will normally preserve that same defect. Keep both exports in the same color space. If contrast changes between viewers, compare them in one viewer before attributing the change to the conversion.
The useful gain may come later. If you need masking, transparent pixels, hard-edged graphics, or several editing passes, PNG can prevent a fresh JPEG loss during each save. Keep the camera or design master too; the converted copy is still not the original source.
We encoded a 320 × 320 copy of our handbag photo as JPEG at quality 75 in Pillow. The JPEG used 9,930 bytes. A PNG saved from the decoded JPEG used 82,388 bytes. We reopened the PNG and compared all decoded RGB pixels with the JPEG. Every pixel matched. The larger file retained the pixels it received, including any existing artifacts.
Choosing a delivery format? Read the JPG, PNG, and WebP comparison. If transparency is the actual goal, remove the background first and inspect the edge before export.