Yes, sodium polystyrene sulfonate affects the exchange of sodium and potassium in the body. It is used to treat high levels of potassium in the blood, also called hyperkalemia.
It is a prescription medicine so a doctor needs to decide whether it is necessary.