Don't replace the IAC yet, simply cleaning it normally restores it back to 100% good operating condition. But where such parts like that and sensors are concerned, I always recommend the OEM part... aftermarket sensors are a crapshoot. But again, just clean it and it'll likely be fine.
In fact, you don't even normally have to remove the IAC to clean it. With a can of throttle body in hand, start the engine after removing the air intake tube from the throttle body. With the engine at idle rpms (don't raise the rpms up from idle), spray the cleaner into the throttle body opening where the IAC will suck the cleaner in through itself. The IAC will flood/fill up with the cleaner which will stall the engine which is fine and as it should be. Restart the engine and do it again until you've gotten at least 1/3 of the can through the IAC. That will also clean the orifice (hole) in the throttle body the IAC's plunger fits into and moves in/out inside of.
Don't waste your time & money on a new IAC until you've cleaned the IAC and learned it didn't fix the problem which is unlikely.
You can see the slot (idle air control passage inlet) in the below drawing the IAC draws its air through. That's the slot the IAC will suck the cleaner in through when the engine is running. The IAC will no longer be drawing air and pulling the cleaner in through itself if you raise the engine rpms up off idle so don't do that. Once you've used 1/3 of the can to clean the IAC, then you can raise the engine rpms and empty the can to clean the rest of the inside of the throttle body.
View attachment 56470