2002 Hyundai accent 1.6 automatic transmission help

I am wondering if there is supposed to be a spring in the part i circled hooked on to the valve on the solenoid part that slides in and out. The picture is just to demonstrate what I’m talking about