Whirlpool Dishwasher not cleaning and loud

I have a Whirlpool GU2400XTPQ7 dishwasher that used to work great. Now the pump is super loud and it doesn’t clean as well. Anyone have experience replacing the motor? I’m thinking about replacing it with part AP4434612. Anyone have experience with this and will it solve the problem?