I been watching tutorials about how to check if a language is not context-free and in 1 video there was a language: L = {a^n b^n c^n | n ≥ 0} and they used a pumping lemma to prove that it's not context-free, I am only a beginner at CFG however I thought a language is Context-free if you are able to create a CFG for it, and this is the CFG i created for this language:
S --> aSX | 𝜀
X --> bXY | 𝜀
Y --> cY | 𝜀
Or am I not understand CFG and what I wrote doesn't make sense?