How to use OnActorBeginOverlap c++ code?

I thought this was the case but for me the opposite was true. I had it in BeginPlay() and events would not fire but when I moved it to constructor the overlap events worked.