When you play a warlock, sorcerer, bard, or ranger each time you get a new spell known you pick that spell and it is a permanent character choice. If you're playing a cleric, druid, paladin, or artificer whenever you get a new spell level you just add all the spells known for that level ...