Yes it can, you just need to make sure you have the correct type, DDR or DDR2.
To find out, go to your BIOS, or setup (it should say hit xx for setup as soon as you start your computer), Google your motherboard, or the easiest would be to just Google your computer model.
Anyway, you can have...