Could you, theoretically, create a program that writes another program and compiles and executes that other program, which subsequently does the same?
If there's an online resource about this (I feel like this question has a name for the phenomenon I'm describing), feel free to just link me. I couldn't find anything in Google cause I was probably not using the right keywords for the concept I'm thinking of.