Your explanation is generally correct in terms of the examples you've cited. But the comma doesn't necessarily isolate the singular noun when a conjunction is involved. John, and several of his friends, are planning to attend the party.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.