Yes it is fine for cats to eat sweet potatoes. In fact they can help with digestion and proper bowel movements.
They can also eat canned pumpkin (not pie filling)
However,cats are obligate carnivores which means their main diet must be protein:
Please let me know if you wish to discuss this further.
I hope all will be well.
Warmest best wishes,