Get the slug before entity is persisted to database

Sluggable, is it possible to have the final slug before the Entity is persisted to database? 
or maybe a callback function?

thanks