Maytag Washer squeaking during agitate

Maytag MVWC565FW0, less than 5 years old. Started making a squeaking noise while agitating, no other issues. Ran diagnostic and got code F7E6, which is the motor. Does the motor need to be replaced, or could it be something else?