Theoretically, but you might be disappointed with it. This is all old memory, so take with a grain of salt, but IIRC, the 3.5 Warlock was designed around ... Once a Wizard/Sorcerer has 5th level spells, for example, 2nd level spells are effectively unlimited for them. Sure, they expend those spell slots, but the main power of those casters was their top 2 to 3 levels of spells they could cast. So if a 9th level Wizard treats 2nd level spells as an unlimited resource, than there's no problem giving the same to a Warlock. Which explains how Warlocks gain at will spells.
Unfortunately, 5e doesn't really make that same assumption, or more to the point, 5e casters are far more limited in their upper tier spell slots and so use their lower level spells more frequently and also run out of them more. So I'm not sure the base assumptions line up properly. Look at the number of spell slots a 3.5 Wizard has, with bonus spells from high casting stats, compared to a 5e Wizard. It's a big difference.