Yes. Drug companies must prove to the FDA that the generic drug is either identical or otherwise bioequivalent to the brand drug, meaning they have the same quality, strength, purity and stability.
The FDA allows for small variations in flavor, color, packaging, and a few other parameters to account for variability during manufacturing. FDA limits how much variability is acceptable.