does the electric cooling fan automatically come on when engine is running? on 1998 Hyundai Sonata

this morning i tried the heater for the first time for about 30 mins and then turned it off well 30 mins later its starts overheating but the gauge says its cool and now its leaking coolant

Asked by for the 1998 Hyundai Sonata