answer to your first part is yes, as long as user you are logging in has appropriate privileges, else you will get errors.
I don't know complete answer for your second question.