sucralfate for post endoscopy sore throat?

so i’ve had a pretty bad sore throat since my endoscopy on thursday morning (it’s now monday). i called my doctor just to let them know and ask if it’s normal, bc the sore throat seems worse than like a typical cold/flu sore throat and more comparable to the pain when i got my tonsils out. he gave me liquid sucralfate to take 4x a day for 10 days to help with this. im a little confused bc i thought that was more for stomach ulcers/gerd. has anyone had a similar experience? i just want my throat to feel better cause im getting dehydrated from struggling to drink bc of the pain.