Short answer? No

Longer answer?

No (but there’s no denying that it helps.)

Of course you can get a book deal without a huge social media following; or without any following at all for that matter. What matters the most is the story you’ve written and whether the publisher can market it.