Is it possible to do hajj on behalf of deceased if your own wajib hajj is still pending

You cannot perform niyyabah hajj for someone if your own hajjatul Islam is not done