Interactions between multiple devices on the same application

Is appium capable of running tests that involve interactions between multiple devices? For example, I have two devices running the application to test, but I need them to log into different accounts and test interactions between those two users.