Document Class simple question

Is the DocumentClass’s constructor method meant to be like a Main() function in C++/C#/Java programming?