Is it possible to call a C++ function from a LevelSequence?

I am trying to trigger a C++ function from one of my custom actor classes as part of a LevelSequence. I have added an event track but don’t know how to connect my function to it. I have searched online and only found examples of blueprints, is it possible to call a C++ function using LevelSequence Events?