Will sucralfate cause my ankles to swell?

No. This medication is not absorbed at all and should not cause any significant side effects other than constipation (or elevated blood sugars with the suspension).
Perhaps, but. That would not be a common side effect of that medication. Talk to your doctor and/or pharmacist about this.