I was wondering if anyone has made a sorcerer and taken the warlock feat for eldritch blast cantrip?

Is it worth giving up 2 attribute points?