Yes, barbarians in D&D 5e can choose feats at certain levels instead of increasing their ability scores, just like other classes, provided their DM is using the optional feats rule.