Delay/latency compensation for MIDI output from an effect plug-in

Is anyone able to provide more information on this?

Should it be possible to get latency compensated MIDI output from an effect plug-in?