Trail Renderer would it be possible to trigger an event other then Autodestruct

Currently working on my game and there is a feature I would like to add to my character. I was wondering If it would be possible to trigger this feature similarly to how auto destruct works on the Trail Renderer. Meaning when the tail reaches the character the event triggers instead of auto destruct. If so how would I go about implementing this. Any help guidance or ideas would be greatly appreciated.

TrailRenderer trail;

if (trail.positionCount == 0)

{

// trail fx completed

}