While the pills you receive at the pharmacy counter may look slightly different from the brand, generic medicines work the same as costlier brand-name products. They have the same active ingredients, and the manufacturing and packaging must pass the same quality standards.