Yes
It’s a spell of 4th level or lower so it meets the only criteria. Indeed the optimum choice is to cast it at 4th level.
A spell can be “cast ... on the guardian” even if the normal targeting and triggering conditions were not met. For example, you can store a Fireball even though it targets a point in space or a Shield even though it targets you and requires you to be hit by an attack or magic missile.
Unlike Glyph of Warding, the effect does not limit the spells that can be stored except by level.
In the alternative ...
You can’t. Nor can you store any area of effect spell or a spell that targets “you” or a spell with multiple targets.