Yes.
You create a magical restraint to hold a creature that you can see within range.
While imprisoned, the target doesn’t need to breathe, eat, or drink, and it doesn’t age.
Until the spell ends, the target is also affected by one of the following effects of your choice:
The secondary effects in the case of immunity to Unconscious just wouldn't do much but the target is still under a magical restraint.
Now technically the magical restraint that holds the creature doesn't mechanically cause any particular condition. So depending on the definition of "held", this may or may not be a problem.
However it is worth noting that the spell also says the condition to end the spell must be something the DM agrees to AND is likely to happen in the next decade. So it won't be a cakewalk to be suddenly immune to aging.