Hey.
I just got an iPhone yesterday and I was wondering if there was a way I could lock it with a password or something so people can't get on it who don't know the password?
You sure can. Just go to settings, then General, then Passcode Lock. Set you 4 digit code, then every time you slide it, you have to enter the code to unlock it.