yes, its possible, i have tried that, you just need to specify the @domain.com when you login as...

if he need to login to company1, he needs to use the login name user1@company1.com, to login as company2, user1@company2.com should be use, but if you set company1 as default domain, then you dont need to enter the domain name, only the user uid