Absolutely that's how it works but to become good at it and not just run into pitfalls you need to train that skill as any other. (Just like ChatGPT in a way) but on more inputs than just context+ text.