Is crossbow expert working on ranged spell attacks rules as intended?

Does Magic Initiate feat mean you can cast a spell with existing spell slots?

Does the “you learn that spell” language in the Magic Initiate feat mean you can cast it with existing spell slots?