Yes, Of course it is safe because the strangers can't access your username and password to steal your data and they cant do harmful actions against you.