Do I have to thank my supervisor?

Yes, it’s important to thank your supervisor(s) in the acknowledgements section of your thesis or dissertation. Even if they were not heavily involved, it’s important to at least briefly acknowledge their assistance.