There seem to be two camps on this.
Most jpeg images are digitized files using a form of compression.
1. Opening and closing a jpeg image causes no degradation of the image.
2. Opening, editing, and saving a jpeg as a jpeg, causes degradation of the image, due to the compression. The more this happens, the more the image degrades.
What say ye all?
You are correct. Just opening and closing a JPEG will not cause any degradation, but editing will. The amount of degradation varies with what sort of editing you are doing. Cropping an image may cause slight degradation, but probably not noticeable unless the cropping is very severe. Changing things like brightness or tint, contrast, etc - things that affect the entire image, will cause more degradation because the entire image will need to be recompressed from scratch. The more you make these kinds of adjustments, the more the degradation will occur. Eventually you will start to see the degradation show up in the forum of pixel blocking, smearing, chunkiness, etc.
If I'm taking "snapshots" that I know I won't be editing much, maybe just to share on social media, I might sometimes shoot in JPG (or on the iPhone HEIC) but any time I'm doing any serious photography, I always shoot and edit in RAW (Canon Raw, but other lossless formats include TIFF, PNG, to name a couple). The HEIC format is similar to JPG but more efficient and sees less degradation than JPG, generally. This is a format that Apple uses (you can change the photo format to JPG on an iPhone if you want to, but why would you?)
For my serious photography, I always shoot RAW then edit in a non-destructive editing program (I use Lightroom but there are others). Then, when I have all the edits done, if needed I will export as a JPG.