Yes, you can.
Try, for instance
#include <vector>
#include <iostream>
using namespace std;
class student
{
string name;
int age;
vector <string> sport;
public:
student(string name, int age, vector<string> sport):name(name), age(age), sport(sport){}
string get_name() const { return name; }
int get_age() const { return age;} const
vector<string> & get_sport() const { return sport;}
};
int main()
{
vector<student> v = {
{ "Johh", 13, { "soccer", "cricket" }},
{ "Mitchell", 14, { "cricket" }},
{ "Michael", 13, {"football", "cricket", "soccer"}},
};
for (const auto & s : v)
{
cout << s.get_name() << ", " << s.get_age();
for ( const auto & sport : s.get_sport() )
cout << ", " << sport;
cout << endl;
}
}