I think so. There's a mod called screepsmod-auth that lets you set a username and password for a private server.