tomrock is right, but I'd like to add one other important point:
It's a very good idea to regularly save out the metadata changes made in Lightroom to the files themselves. This way, your edits will be saved elsewhere in addition to the LR database. So if you ever had to move the files themselves, and make a new LR database, you wouldn't lose edits that were only stored in the LR database.
This is done woth cmd/ctrl -S, jsut like saving files in any other program. If you're using native camera raw files, this will generate sidecar XMP files. For all the other file types, the metadata will be written into the files.
I have gotten in the habit of selecting an entire folder of images at the end of an editing session and saving metadata out for all them at one time.