Depending on what the type of ritual is, sure. A body always counts as a "Physical" target. Of course, even if the ritual finishes (somehow) before the body dissipates, the rituals would likely disappear upon resurrection since the target has been destroyed (most enchantment-type rit scrolls state this explicitly).
And if so what would happen if the body dissipates during the ritual after the target was declared?