As a kid I ejaculated and did not know about ghusl . For 2 years I did not know about ghusl and I read Qur'an . Have I sinned?
You might be excused if you are a new convert to Islam, living in the Dar al-Harb or a remote area where it was not possible for you to have learnt about the obligations of Islam from other knowledgeable Muslims. This has been discussed by scholars under the topic of ignorance.
Otherwise it was obligatory on you to learn about basic rulings of Islam which effect your daily life, so yes you have sinned since you were negligent.
وفرض على كل مكلف ومكلفة بعد تعلمه علم الدين والهداية تعلم علم الوضوء والغسل والصلاة والصوم، وعلم الزكاة لمن له نصاب، والحج لمن وجب عليه
It is obligatory on every accountable male and female ... to learn the rulings of wudu, ghusl, prayer, fasting, zakat and hajj ...