Adding dynamic data to a custom dropdown field in Pages

Is it possible to get the results of a php query on a model and put the results in a custom filed in Pages? So if you query the Category model, you would put the results in the variable filed with type dropdown. I can’t get it to work, but would extending the filed in the plugin boot function work?

Thanks in advance.