Do we accept everyone who wants to come from all Sharia law countries? From all countries that treat women poorly? From all countries that aren't democracies? That's a lot of people. They will need housing and medical care and translators.
If you think further about your statement, should we have wholly refused refuge to Jews fleeing the Nazis? Many of those fleeing will not espouse the values of the Taliban, so we should not discriminate on those grounds.
Many also will have skills which we could use. I read yesterday of the British soldier who set up an animal shelter - he wants to get his staff out, some of whom are vets that he trained. We have a shortage of vets in the UK - so with suitable vetting some of those fleeing Afghanistan could be employed here and would probably be glad to do so.