Is the following sentence correct, did I use the correct "where"?

I spent most of my time in school, where I learned about several different topics.

Well done!

Sra