Does variable order affect class size due to byte alignment in C#/Unity

I’ve studied recently that in C++ the order of your variables can ultimately affect the memory of your class due to byte alignment. Is the same true for our classes in C#?

class memInefficient{
    int i1;  //It's safer to put the 2 bool vars at the end?
    bool b1;
    bool b2;
    int i2;
}

I created a few structs with different organization of the variables. It appears to me that the arrangement does not affect the struct when I used Marshal.SizeOf(). It really is a letdown that I can’t use sizeof on a class. It is nearly certain that C# takes care of the variable memory alignment for you.