It's really a DM call the whole way. Some DMs would want you to make at least a pretense of learning about your new abilities. Others will just hand casters new spells in the middle of a fight without requiring spell prep or anything. There really isn't rules here beyond your table's culture.