Run function on Add new post button

I have a php function for populating some fields on the edit post page. I want to run this function when the user clicks the Add New button on posts page. Or maybe create a new button to run my function and navigate to the new post page?

Is it possible?