No, sucralfate is a coating agent that acts on the surface of the upper GI tract. Famotidine reduces acid production by the lining of the tract.
Both drugs are useful in treating/preventing GI ulcers.