Sure, the manufacturer states the thermometer is waterproof/submersible.
Keep in mind, active fermentation inside the vessel can be ~10F warmer than ambient (if in open air, not sure what it would be if the carboy is partially submerged/covered with a wet shirt, etc.)
Ideally, a thermowell...