Yes, in the acknowledgment section of your thesis or dissertation, you must thank your supervisor even if they did not contribute greatly to the final product. It seems like a snub if you do not include your supervisor.