Hello there,
Yes you can.
JInjector allows you to script any kind of user interaction. If you
were testing the login manually you were first logging in then logging
out, then logging in again. In your test case you have to recreate
exactly the same sequence, therefore if the login attempt was
successful then log out and login again.