Yes it is possible, there are lots of ways, more than I know to say the least, I'd listen to the SUnnySkyguy.
Another approach is to use an
inverter. The 7404 is a ready-made low voltage device (not good for what you now plan to do).
It makes a high signal low and a low signal high. You can
achieve the same effect with a TTL or a CMOS inverter using discrete components, or even easier is one power transistor (NPN or NMOS) configured as an inverter. Here is a schematic:
https://en.wikipedia.org/wiki/Inverter_(logic_gate)
And this is a simple explanation with schematics too:
https://www.cl.cam.ac.uk/teaching/1112/Hardware/Workshop5_2011.pdf
If you can, get a breadboard, a trimpot, a transistor, the LM35, an LED, a DVM or a DMM which can measure temperature, put them together (I'm happy to do a simple schematic for you if it helps, but I'd need up to a day or two), and with a hairdryer, cigarette lighter or other heating device (if you really need it, which you would to get 60ºC), actually test in the real world when the signal goes low - the LED would go off. Better to test starting off with a lower voltage, and then increasing the voltage to the 24V when the basic version works.
MOSFETs don't seem to do well with a gate voltage over 20V max, they fry I think, they can pass much higher voltages but the gate is like a transistor base, so you would need a device to boost the input signal to the gate/base from the LM35, which could just be a smaller BJT or NMOS/NFET, or an OpAmp set up as a comparator.