How to initialize a module?

Currently I’m creating a custom module for a specific function.

I have added the class content to the modules .cpp files.

I need to instantiate an object form this class that is on the .cpp file of the module when the game is initialized, I currently cannot find anything similar to the beginplay() function that works for modules.

Do the modules have something like an init() function that automatically runs when I start the game?

Many thanks in advance