I would recommend reading this.
Essentially if you want to modify how the behaviour of Kentico works, e.g. setting up global events, then you can use a module class to initialise the code.
So yes you can do the same, it would look something like this:
using CMS;
using CMS.Core;
using CMS.DataEngine;
[assembly: RegisterModule(typeof(ExampleModule))]
public class ExampleModule : Module
{
public ExampleModule() : base("ExampleModule")
{
}
protected override void OnInit()
{
base.OnInit();
CustomTableItemEvents.Insert.Before += Insert_Before;
}
private void Insert_Before(object sender, CustomTableItemEventArgs e)
{
....
}
}