No
If the body is still alive
The magic jar spell places the body in a "catatonic state" but does not kill it. The resurrection spell targets "a dead creature that has been dead for no more than a century, that didn't die of old age, and that isn't undead." If the body is still alive, it is an invalid target for the resurrection spell, and the spell fails.
If the body is dead
While under the effects of the magic jar spell,
The only action you can take is to project your soul up to 100 feet out of the container, either returning to your living body (and ending the spell) or attempting to possess a humanoid's body.
If the caster's body is still alive and in range, the magic jar permits the soul to return to it. But the soul is unable to return to its body if the body is dead; it remains in the magic jar.
Normally, when a body dies, its soul leaves it and passes on to the Outer Planes (DMG 24)1:
When a creature dies, its soul departs its body, leaves the Material Plane, travels through the Astral Plane, and goes to abide on the plane where the creature's deity resides. If the creature didn't worship a deity, its soul departs to the plane corresponding to its alignment.
However, we see that the magic jar has prevented this process. When the caster's body died, its soul was supposed to leave the Material Plane, pass through the Astral, and go beyond. Instead, it remains trapped in the magic jar, able to possess other living bodies but unable to return to its dead one and unable to leave the Material Plane. The only way for the soul to pass on to the Outer Planes is if the magic jar trapping it is destroyed:
If the container is destroyed or the spell ends, your soul immediately returns to your body. If your body is more than 100 feet away from you or if your body is dead when you attempt to return to it, you die.
Into this situation of the dead body and trapped soul we introduce the resurrection spell. Presented with a dead body, the resurrection spell has a valid target, but then:
If its soul is free and willing, the target returns to life with all its hit points.
While the soul may be "willing" to re-enter its dead body, it is not "free" to do so because it is trapped, bound to the magic jar. The resurrection spell acquires a valid target (the body) but then fails because the soul is not free. The fact that the spell has an "if its soul is free" clause shows that the resurrection spell itself does not have the power to force the soul out of the magic jar, any more than the natural pull of the afterlife has been able to.
In order to resurrect someone under the effect of a magic jar, you must first destroy the jar (simultaneously killing and freeing the soul) and then cast resurrection on the dead body.
1
When a creature dies, its soul departs its body, leaves the Material Plane, travels through the Astral Plane, and goes to abide on the plane where the creature's deity resides.
One could read this and object that the magic jar spell disrupts this process; since the soul is already in the magic jar when the body dies, it cannot complete the "its soul departs its body" stage and therefor everything that comes after is void.
However, I believe this is better thought of as the "normal sequence of events" but that when one of the steps is not met, the process naturally moves on to the next step. The description assumes that a person's soul is in their body when they die and that their body is on the Material Plane, because that covers most cases. But if either of those is not true, the "afterlife" process just proceeds to the next step anyway. To rule otherwise, to rule that this exact sequence must be followed or none of it happens, means we have a big gap in the rules where nothing is defined. What happens if my soul is in my body when I die on the Elemental Plane of Fire? Unknown. What happens if my soul is in my body and I am bodily present on the Astral Plane when I die? Unknown. According to the magic jar spell itself:
If the container is destroyed or the spell ends, your soul immediately returns to your body. If your body is more than 100 feet away from you or if your body is dead when you attempt to return to it, you die.
What does "you die" mean here, and where does my soul go in this case? Unknown.
Rather than assume that the fate of souls in all these cases is a blind spot in the rules, I think it makes more sense to just rule that if a step in the 'afterlife sequence' does not apply, we just move to the next step. If your body is dead when your soul is in a magic jar and the magic jar is destroyed, "you die" means your soul leaves the Material Plane, travels through the Astral Plane, etc. But if your soul is already in the magic jar at the moment your body dies, you do not follow the sequence. Your soul remains in the magic jar, it does not leave the Material Plane. Specific over general, the spell tethers your soul to the jar - and this is what allows it to resist the resurrection spell.