5th dnd – Can a bard use the Glyph spell option of the Glyph of Warding spell and cast a known spell in the glyph?

If you read the description of the "Glyph of Fate" option from Glyph of protection spell, it says that you cast a spell that you have prepared in the glyph. Bards can learn this spell, but they do not prepare it; they learn them.

Can a bard cast a spell that has been learned (rather than prepared) in a Glyph of protection?