no you dont have to buy them before the classes start
when the classes start then you can consult your teachers and seniors regarding which books to buy and which books are betterand only then you should buy.
they would be available online or if you come to know some of your seniors then you can request them to give it to you
if you buy it before hand it might be risky but if are too interested to study right now then its your choice