.NET Core Applications are console applications. Program.cs is the entry Point for application. Like any application the execution of Application starts from public static void Main(string[] args){}
This Program.cs creates the application Host. It configures the setiings file like appsettings.json,logging using CreateDefaultBuilder(args) and Startup.cs through webBuilder.UseStartup() which further helps in building dependencies.
Like C# console applications, ASP.NET Core has the Program class, which is an important class that contains the entry point to the application. The file has the Main() method used to run the application and it is used to create an instance of WebHostBuilder for creating a host for the application.