macOS does get some security updates for the non-latest version, but it does not get all security updates.
https://arstechnica.com/gadgets/2021/11/psa-apple-isnt-actua...