Array with two values per element

I need to create a Array with two values per element:
One bool and one string.
Is there a way to do that in unity (C#)?

Make a struct

[System.Serializable]
public class Data{
   public string theString;
   public bool theBool;
}

then make an array of it:

public Data[] dataArray;