Not as far as I know. The way string formatting works is by using format in whatever function allows you to do it. For example, client_print allows you to format strings because it has format coded inside it.
If you somehow coded format into your function, you might be able to, but otherwise I don't think so.