A little. Thyroid problems play a negligible role in obesity.
The American Thyroid Association states:
In general, 5-10 pounds of body weight may be attributable to the thyroid, depending on the severity of the hypothyroidism.
Most of the weight gain directly associated with thyroid issues is negligible. In fact, the average weight loss from treatment was 4.3kg, most of which was attributed to the excretion of excess body water
Pre-existing obesity, a diagnosis of Graves' disease and prior weight loss independently predicted weight gain and weight continued to rise with time. 
(Common phrases used by users for this page include thyroid weight gain, how does hypothyroidism contribute to weight gain, fox et al hypothyroidism weight gain in all patients, Karmisholt J, Andersen S, Laurberg P 2011 Weight loss after, Can Hyperthyroidism Cause Weight Gain, BBW Weight Gain Blog)