my car is stutterin but doesn't stall on 2002 Kia Optima

I have an 02 kia optima it stutters and I replaced the throttle position sensor two months ago ran fine check engine light came on week ago im thinking spark plugs but would that make check engine light come on and these are same symptoms for throttle position sensor but no code for that but going to get code later today

Asked by for the 2002 Kia Optima
an engine misfire will trip a trouble code, let us know what code you get and we'll go from there.