Yeah it should work but the piont is its ships with 2x512mb ram which is faster than 1x1gb.
Apple recommends you don't mix ram sizes and brands for example u can't put that 1gb ram in 1 slot and leave 512 mb ram that it shipped with in the other because they will be different sizes and different brands.