Ram Question

My question for you is. Can I add a 1gb RAM chip next to a 512mb RAM.
Right now my computer has 1 512MB RAM in it. Tomorrow im buying a 1gb RAM chip. So would be okay to have them run together?
Right now my computer has 1 512MB RAM in it. Tomorrow im buying a 1gb RAM chip. So would be okay to have them run together?