Yes, the ingredients in baking powder are generally the same, but there may be subtle differences in the amounts of each ingredient used.
Baking powder, however, contains both and.
Baking powder is usually good for about 12 months and baking soda is typically good for 6 months if stored in a cool, dry place—but like any ingredients, they can go bad sooner.