Don't be ridiculous. Learning? That's for the dinosaurs. Just throw an llm at the problem!
Both is good. I do both, and to get reasonable output from an LLM I _have_ to do both.