It is possible to specify and select which members are allowed to log in. This can be done by unchecking ‘Enable member to login’ on the Member Details page.
If doing a mass import, you can have a column with ‘Yes’ and ‘No’ and map it to ‘Login Allowed’.