Yes, a thesis is submitted at the end of a Master's degree, and the degree is awarded on its basis. On the other hand, a dissertation is a part of doctoral studies.