Sure it can, "print hello world in C++"
#include
int main() {
std::cout << "hello world\n";
return 0;
}
"print d ft just rd go t in C++"
#include
int main() {
std::cout << "d ft just rd go t\n";
return 0;
}
The latter is a "novel program" it's never seen before, but it's possible because it's seen a pattern of "print X" and the X goes over here. That doesn't mean it understands what it just did, it's just got millions (?) of patterns it's been trained on.