This is not against the rules for more than one person to play on the same ip / computer however if one screws up and gets banned, you both will be banned - none of "It was not me, it was my friend".
You can also share an account between you (but then you cannot have your own private accounts) - but still, if one player is banned, both are banned and are treated as one.