Pre receive hook using project services

Is it possible to invoke a project service before doing a push similar to a pre receive hook