Stop Gmail/Ms account with a certain domain from registering or logging in

Yes, you can use it directly in an Action.