Yes, both can cause your issues
The main one is 21-Engine Coolant Temperature (ECT) sensor out of range
24-Intake Air Temperature (IAT) sensor out of range
2 digit code list here:
https://therangerstation.com/tech_library/2digitcodes.shtml
ECT sensor is near thermostat housing along with the ECT SENDER(for temp gauge)
ECT sensor is 5volts and uses 2 wires
ECT Sender is 12volts and uses 1 wire
ECT sensor is only used by the computer, it is used to Choke the engine on start up and then adjust fuel mix according to engine temp
Check its wires first makes sure its plugged in and wires are OK, if so replace it, its not expensive
Then see how it runs
Code 24 can be caused by ECT sensor not working, even though its another sensor, it reads air temp inside the intake manifold so should go up with ECT sensors increase in temp, thats what computer compares it to
IAT sensor is on the upper intake, drivers side, also 2 wires, it looks similar to ECT sensor on the outside