If a Wizard take the feat Extra Spell, can she immediately write it in the spellbook?

From RAW I got the feeling she cannot and she must before create a scroll and copy from it...