No, one drug cannot be substituted for the other. Although they have the same main active ingredient, they are dosed differently and may be prescribed for different medical conditions.
You should follow the instructions given on the label and take them only as directed by your healthcare provider.