Yes and no. A mercury thermometer is not allowed in your carry-on luggage, but you can bring a digital thermometer with you as long as the rated energy of the lithium battery does not exceed 100Wh or the lithium content does not exceed 2 grams. Still, as travelers are now normally required to have their temperatures taken before getting onto the plane, it is not necessary to bring a thermometer.
Source: Xinhua