Radiator fan won't shut off Buick encore 2017

its possible the temp sensor is going bad and causing it to read wrong and keeping it on.is the check engine light on? do you have any codes?