Yes, generic Viagra works the same as brand Viagra. They both contain the same active ingredient, Sildenafil, and are used to treat erectile dysfunction.