Two different accounts on same IP

Hello
I just want to know if it’s allowed to use two different accounts with different information on the same IP and device?

do you mean calling API?